Answer the question
In order to leave comments, you need to log in
How to mute, ban telegrams with a bot?
I roughly figured out how to add the /ban command to the bot:
@dp.message_handler(commands=['ban'])
async def ban(message: types.Message):
await message.bot.ban_chat_member(message.chat.id, message.reply_to_message.from_user.id)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question