You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up an SQS message queue where all my Telegram messages are being listed by a webhook service and then pushed into the queue. I poll the messages from this queue and handle the bot logic by calling bot.handleUpdate(msg.body). Currently, I have 2-3 bot servers, and the messages from the queue are distributed among them.
However, I'm facing a challenge with using scenes in this setup. For instance, if a user's message triggers entering a scene on Server 1, subsequent messages corresponding to further interactions of the scene may get sent to different servers. This presents a potential issue in maintaining the context of the conversation.
Do anyone have any suggestions on how I could address this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have set up an SQS message queue where all my Telegram messages are being listed by a webhook service and then pushed into the queue. I poll the messages from this queue and handle the bot logic by calling bot.handleUpdate(msg.body). Currently, I have 2-3 bot servers, and the messages from the queue are distributed among them.
However, I'm facing a challenge with using scenes in this setup. For instance, if a user's message triggers entering a scene on Server 1, subsequent messages corresponding to further interactions of the scene may get sent to different servers. This presents a potential issue in maintaining the context of the conversation.
Do anyone have any suggestions on how I could address this issue?
Beta Was this translation helpful? Give feedback.
All reactions