Hello everyone is any way to ban a user from bot

and dont get update from him?

6 ответов

24 просмотра
⸢ Alireza ⸥- Автор вопроса

yes but he is spamming my bot..! and eating my host resources ! :(

Just record the user ID in the blacklist (database) and write a code segment to check the user ID for every related updates, then ignore those user ID which matches/found in the blacklist

⸢ Alireza ⸥- Автор вопроса
⸢ Alireza ⸥
yes but he is spamming my bot..! and eating my hos...

Spamming is a lot less fun, when you are ignored.

⸢ Alireza ⸥
yes but he is spamming my bot..! and eating my hos...

ermm.. your host... you mean a Local Bot API Server? or just a Webhook like a PHP script?

Похожие вопросы

Карта сайта