Bots should be able to temporarily/permanently block users. When a user is blocked by the bot, the bot won't receive any updates from the user.
Workaround
A possible workaround is to temporarily "ban" the user when the flood is detected by setting a database record. On every incoming message, it needs to check (with cache) if the sender of the message is currently banned, and if so, ignore the user.
Reasoning
Users can send messages on telegram very quickly. A bot, even if it has antiflood code, may start lagging for everyone, just because a few users flood messages or inline button clicks and the bot can't cope with the updates anymore.
Yup , having that feature server side is more compact because it can increase the performance by reducing the realtime monitoring of spammers and ignoring the argument from them , and it can be enhanced by extending it to a temporary block which may unblock a user after some duration of time
ℚ
if telegram cares about traffic, it should be implemented.. i've come to this card because i've received such updates (check attached log image). they come periodically, like if that spam-account added in its send list.
تقني|•TIQANE•| تواصل ᵀᴷ
Yes, I suffer from spam So if it is added and we will not receive any webhook (py banned user), it will be better
⸢ Alireza ⸥
REALYYYYY WE NEEEEEED THIS METHOD.. !!! plz add a method to can block some users. by this way, can get no any updates from their.. NO UPDATE == NO PROCESS PLZzzzz
Matte :)
This will be a very important feature. It will eliminate useless work around to stop spammer, because even if you ban it in your code the "receiver node" it will still get all the message slowing down all the other software.
a
ak
bots should block people so that they cannot send spam updates to the bot, such as groups that are closed.
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.
i've come to this card because i've received such updates (check attached log image). they come periodically, like if that spam-account added in its send list.
So if it is added and we will not receive any webhook (py banned user), it will be better
plz add a method to can block some users.
by this way, can get no any updates from their..
NO UPDATE == NO PROCESS
PLZzzzz
It will eliminate useless work around to stop spammer, because even if you ban it in your code the "receiver node" it will still get all the message slowing down all the other software.