Ban and unban¶
In VisualMaker, you can use the /ban
and /unban
commands to manage your bot's users. These tools are useful for maintaining order and ensuring a healthy environment in your bot.
How to use the commands¶
Ban users¶
The /ban
command allows you to block a user, preventing them from interacting with your bot.
Format:
/ban user_id_or_username
Examples:
/ban 123456789
/ban @username
Unban users¶
The /unban
command removes a user's block, allowing them to interact with your bot again.
Format:
/unban user_id_or_username
Examples:
/unban 123456789
/unban @username
Who can use these commands?
- Only the bot owner and the administrators designated by the owner have permission to use the
/ban
and/unban
commands. - Regular users cannot execute these commands.
Important notes¶
- User ID or username: You can use the
user_id
(Telegram user ID) or theusername
(username with@
) to identify the user you want to ban or unban. - Immediate effect: When banning a user, the block is applied immediately. The same applies to unbanning: the user will be able to interact with the bot as soon as they are unblocked.