telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

[Question] Method editMessageText slow response in channels

Open DorianPeregrim opened this issue 3 years ago • 5 comments

Hello.

I try to edit message in channel 20 times (according to group limits in docs) with 1-2 second frequency. For groups with ~10 members it works fine. But in groups with 100+ members I get delay from up to 6+ seconds from second editMessageText method call.

In groups same logic works fine for 10 or 100+ members.

Is this normal behaviour or a bug? Are any ways to speed up my requests in channels?

DorianPeregrim avatar Oct 05 '22 15:10 DorianPeregrim

It is normal behavior. Messages can't be edited so often.

levlam avatar Oct 05 '22 15:10 levlam

But in groups can?

DorianPeregrim avatar Oct 05 '22 15:10 DorianPeregrim

Limits can be different for different chats.

levlam avatar Oct 05 '22 16:10 levlam

Why is it not 429 like the sendMessage method? What are the actual limits for channels? How can I to avoid slow requests editMessageText? Will it change in the future?

DorianPeregrim avatar Oct 06 '22 11:10 DorianPeregrim

It can be 429, or anything other. This behavior is intended and can't be avoided.

levlam avatar Oct 06 '22 12:10 levlam