1
1
1 22021-11-15 19:18:16
Python
1 2, 2021-11-15 19:18:16

How to restrict user in aiogram?

How to restrict a certain user in a certain chat using the aiogram library , for example, so that the user cannot send messages, etc. And also how to return these rights back through the aiogram library . I just went through all the documentation and couldn't find it...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-11-15
@SoreMix

bot.restrict_chat_member(chat_id, user_id, can_send_messages=False)

https://docs.aiogram.dev/en/latest/telegram/bot.ht...
https://docs.aiogram.dev/en/latest/telegram/bot.ht...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question