G
G
Gospodin_Kiroshi2021-10-17 03:22:07
Python
Gospodin_Kiroshi, 2021-10-17 03:22:07

How to make the "/ban" command to a bot in telegram?

Library "Aiogram"

How to write a ban command for a bot so that, for example, using the command "/ban @ some person" a person is banned in the chat. It can also be done with time. Like "/ban @people 10 h(hours)"
Only please, if you write part of the code, then say where and how you need to insert it so that I don’t think again all day that yes how)

Maybe somehow I explained it wrong , if anything, correct or ask. Ready for any help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philip Schultz, 2021-10-17
@Filipp_SC

Everything you need is here.
https://docs.aiogram.dev/en/dev-3.x/api/methods/ba...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question