You’ll need to store the thread ID for each new user who messaged the bot, and fetch the thread ID for the user ID when a new message is received, so that each user has their own thread.
For more information and screenshots of setup, see one of the linked posts in Struggling with “Thread” logic for OpenAI Assistant in Telegram bot - #2 by samliew
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!