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.
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.
Imagine Dragon
Allowing Telegram bots to ban users, preventing them from sending messages to the bot is resource-efficient because it reduces unnecessary traffic and server load (both for the bots and for Telegram itself). When bots can restrict abusive or spammy users from interacting, they don't need to process unwanted requests, conserving bandwidth, processing power, and storage. This also improves the bot's performance for legitimate users and minimizes the risk of overwhelming the bot with unnecessary data, leading to a more stable and scalable service.
Expanding on this: This could be a single method like: /blockUser with optional field of "ban_duration", which, if left empty, bans the user forever, then there can be another optional "reason" field and perhaps the "silent" field, to not notify the user of the ban
After that, if the "ban forever" option happens, then you'd also need /unblokUser, optional fields may include "silent" and/or "reason"
That's my take on this
D
Deleted Account
Hello Telegram Support Team,
I am reporting a serious violation of Telegram’s community guidelines. The following channel/group is sharing extremely harmful and illegal content, including child sexual abuse material (CSAM) and/or sex trafficking content.
This type of content is not only against your policy, but also a severe violation of internationalu laws regarding child protection and sexual exploitation. I urge your hbb team to review this immediately, take it down, and cooperate with relevant authorities if necessary.
Please prioritize this report. The safety of children and the integrity of your platform are at stake.
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.
This could be a single method like: /blockUser with optional field of "ban_duration", which, if left empty, bans the user forever, then there can be another optional "reason" field and perhaps the "silent" field, to not notify the user of the ban
After that, if the "ban forever" option happens, then you'd also need /unblokUser, optional fields may include "silent" and/or "reason"
That's my take on this
I am reporting a serious violation of Telegram’s community guidelines. The following channel/group is sharing extremely harmful and illegal content, including child sexual abuse material (CSAM) and/or sex trafficking content.
https://t.me/+K2HAeIMpYGY2YjY1
I'D;1891953881
User ID associated (if applicable):
@flairbank
I'D 6033553110
Type of Content:
This type of content is not only against your policy, but also a severe violation of internationalu laws regarding child protection and sexual exploitation. I urge your hbb team to review this immediately, take it down, and cooperate with relevant authorities if necessary.
Please prioritize this report. The safety of children and the integrity of your platform are at stake.
Thank you for your attention.ុ