Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
807 stars 341 forks source link

send a message to all users #154

Closed thezahedi closed 4 years ago

thezahedi commented 6 years ago

Hi, I want you to write a function to send a message to all of user's bot (more than 500,000 users). As you know, telegram has a request limit, 30 request at a second. So, can you write this function for me? @Eleirbag89

eMaurits commented 6 years ago

Maybe just build in a sleep(1) after 30 requests?

Eleirbag89 commented 6 years ago

@eMaurits is right, there is no other way around it. This library is intended to be simple and easy, all the "advanced" features should be done elsewhere.