Answer the question
In order to leave comments, you need to log in
How to delete a message in a supergroup by a bot?
Greetings.
Very tormented by spam in the supergroup. Mostly all kinds of bots in Arabic spam, plus occasionally users. Message texts in Arabic. I started writing a bot to clean up the chat from this rubbish. I use this library: https://github.com/Eleirbag89/TelegramBotPHP/blob/...
But I don't understand the triggering logic, namely:
//получаю текст сообщения
$result = telegram->getData();
$text = $result["message"]["text"];
$chat_id = $result["message"]["chat"]["id"];
$caption = $result["message"]["caption"];
//Далее проверяю на наличие арабского и удаляю
Answer the question
In order to leave comments, you need to log in
Bots do not receive messages sent by other bots. This is a bot api limitation. This can be implemented on the client api (try the official one or the popular one on python )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question