TelegramBots
TelegramBots copied to clipboard
API POST /editmessagereplymarkup method executes with delay
Given:
- Telegram channel
- Telegram group
- Telegram bot with long polling strategy on board which handles all updates
- Messages with reply markup buttons
Action:
Click any button twice (or more) in short period of time (1-2 seconds)
Problem:
When I click buttons in group - everything is ok, but when I click same buttons with same logic in channel:
The first api call executes very fast But the second api call needs about 5 seconds to get responded, which freezes business logic and gets user annoyed
Slow network? I’ve seen this happen when running a bot on my PC at home. Moving it over to EC2 for example fixes this without any additional hassle.
Slow network? I’ve seen this happen when running a bot on my PC at home. Moving it over to EC2 for example fixes this without any additional hassle.
No, the bot is already hosted on VPS And as I mentioned, same group works fast and well