Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question