I
I
Ivan Promin2017-01-11 23:33:03
PHP
Ivan Promin, 2017-01-11 23:33:03

How to send a message to several telegram chats at once?

Hello.
How can I send a message to several telegram chats at once?
Formation example
//call
$website = " https://api.telegram.org/bot ".$botToken;
// chat ID
$id_chats = 12345678;
//send message
$message_new_order = $website.'/sendMessage?disable_web_page_preview=true&chat_id='. $id_chats .'&text='. urlencode($message).'';
But this is sending to one chat.
Share your experience on how to send a message to 2 or more chats?
For example, if they are listed in one variable
$id_chats = 12345678, 98765431;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Perin, 2017-01-11
@sweetcode

Php, explode, foreach + google, just in case

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question