Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send message to th all of bots users (telegram api)

Tags:

telegram-bot

how to send Send message to the all of bots users?

There is no way to sned message to all ?

what is the method name ?

like image 957
Navid Mirzaaghazadeh Avatar asked Feb 20 '16 13:02

Navid Mirzaaghazadeh


2 Answers

From Official API FAQ:

How can I message all of my bot's subscribers at once?
Unfortunately, at this moment we don't have methods for sending bulk messages, e.g. notifications. We may add something along these lines in the future. (...)

Obviously, if you store users chat_id, you can send individual message to all users (I use this method).

like image 111
fusion3k Avatar answered Sep 25 '22 08:09

fusion3k


Navid wants to send message to all subscribers via bot. If subscribers are more than 100 persons bot will very slow to sending all messages and may doesn't send messages to all. Navid's question was how we can send message without this problem?

you can send with curl_multi_exec

like image 31
zoya Avatar answered Sep 21 '22 08:09

zoya