Eleirbag89 / TelegramBotPHP

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

Send message to all users #251

Closed NZ62AN closed 2 years ago

NZ62AN commented 3 years ago

Hi, how to send message to all users in bot and cronjob ?

array05 commented 3 years ago

Hi, how to send message to all users in bot and cronjob ?

Where do you store the list of user IDs? You need to cycle through them with the method of sending a message, taking into account the telegram limits

matinkg commented 3 years ago

Hi, how to send message to all users in bot and cronjob ?

It's impossible with telegram bot API. You should store users id whenever they message the bot and then use a "for loop" to send message to them.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.