


Consider spreading out notifications over large intervals of 8-12 hours for best results.Īlso note that your bot will not be able to send more than 20 messages per minute to the same group. If you're sending bulk notifications to multiple users, the API will not allow more than 30 messages per second or so. We may allow short bursts that go over this limit, but eventually you'll begin receiving 429 errors. When sending messages inside a particular chat, avoid sending more than one message per second. My bot is hitting limits, how do I avoid this? You can't send message this way to all user. The API will not allow more than ~30 messages to different users per second, if you go over that, you'll start getting 429 errors. In order to avoid hitting our limits when sending out mass notifications, consider spreading them over longer intervals, e.g. The reason for writing this bot utility is that I wish to run multi telegram bots which could have same or different business logic (route policy) in one process. We may add something along these lines in the future. A telegram bot API client is written in python 3.5+ and currently compatible with Telegram Bot API 5.3 and later. Unfortunately, at this moment we don't have methods for sending bulk messages, e.g. How can I message all of my bot's subscribers at once? The problem with foreach or any other massive sendMessage is that the API will not allow more than ~30 messages to different users per second.
