Skip to content

Action: ban | unban

Has a user committed an infraction? You can ban them from your bot or unban them if they are already banned. Banned users will not be able to use your bot.

Options of the action:

  • Action: Select whether to ban or unban.
  • Set user: The Telegram ID or @username of the user to ban or unban. You can use expressions, variables, and IDs from previous actions to dynamically ban and unban users.

What does the action return via its ID?

To see the result of the operation, access #IDAction.status#. If everything goes well, you will receive 'ok'. However, if the user is already banned, not banned, or the user is incorrect, you will receive 'failed'.