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
So, we want to always keep track of what we've sent to both of the chat rooms (XMPP and Telegram). Here I'll describe a general strategy, but it looks like it'll be most useful for XMPP (because the transport is extremely unreliable).
When sending a message to the room, bot should also save that message to the internal storage.
Before sending any additional messages to the same chat, bot should make sure the message it sent has been received. To do that, it just should listen for the room messages and await its' own response.
If the response haven't been received after a timeout (say, 5 minutes), bot should then reconnect to the room (to make sure nothing's wrong with the connection), receive all the room messages through MAM, and then send the message again if it wasn't found in the full history archive.
The bot internal storage should be persistent, so after reboot it still will try to deliver all the messages in the right order.
Yes, our bot should maintain a full history archive (as seen by the server through MAM) and that'll be additional challenge.
The text was updated successfully, but these errors were encountered:
So, we want to always keep track of what we've sent to both of the chat rooms (XMPP and Telegram). Here I'll describe a general strategy, but it looks like it'll be most useful for XMPP (because the transport is extremely unreliable).
Yes, our bot should maintain a full history archive (as seen by the server through MAM) and that'll be additional challenge.
The text was updated successfully, but these errors were encountered: