Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of messages in FROM_CHAT not being preserved in TO_CHAT #8

Open
User087 opened this issue Jun 29, 2021 · 1 comment
Open

Order of messages in FROM_CHAT not being preserved in TO_CHAT #8

User087 opened this issue Jun 29, 2021 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@User087
Copy link

User087 commented Jun 29, 2021

I’ve found that when the internet connection breaks and messages are sent in the meantime to the FROM_CHAT, then after the internet connection comes back, the bot copies those messages to the TO_CHAT, but they may not be sent in the same order as they were in the FROM_CHAT. I've also found that this occurs when multiple messages are forwarded from some chat to the FROM_CHAT; the bot copies all those messages to the TO_CHAT but it may not be in the same order as in the FROM_CHAT. Is there anything that can be done to preserve the order of the messages as they are sent in teh FROM_CHAT?

@viperadnan-git
Copy link
Owner

viperadnan-git commented Aug 31, 2024

It depends on the telegram update callback and how much time the bot takes to process each message, hence the bot is not using external or in-memory database, fixing this issue probably requires a database to keep track of messages.

If you have any suggestions for implementation than please comment here.

@viperadnan-git viperadnan-git added bug Something isn't working wontfix This will not be worked on labels Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants