You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now, when you try to ban a user who is writing to a group using his channel, instead of blocking the channel, an internal TG entity called Channel_Bot is banned.
A proper way to block the channel would be to issue a banChatSenderChat command. To distinguish that it is a channel writing to the chat, you might want to check that from has it's is_bot set to true (may also want to check if username is Channel_Bot but I guess it's not required) and a message has also sender_chat key with it's type set to "channel". The id of sender_chat is what to be the second argument to a command, first one being the chat's id.
The text was updated successfully, but these errors were encountered:
As of now, when you try to ban a user who is writing to a group using his channel, instead of blocking the channel, an internal TG entity called
Channel_Bot
is banned.A proper way to block the channel would be to issue a banChatSenderChat command. To distinguish that it is a channel writing to the chat, you might want to check that
from
has it'sis_bot
set to true (may also want to check if username isChannel_Bot
but I guess it's not required) and a message has alsosender_chat
key with it'stype
set to "channel". Theid
ofsender_chat
is what to be the second argument to a command, first one being the chat's id.The text was updated successfully, but these errors were encountered: