TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

API POST /editmessagereplymarkup method executes with delay

Open imbananko opened this issue 4 years ago • 2 comments

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

imbananko avatar May 01 '20 10:05 imbananko

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.

mattmalec avatar May 11 '20 14:05 mattmalec

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

imbananko avatar May 16 '20 09:05 imbananko