I
I
ibritic2020-10-03 00:04:14
Python
ibritic, 2020-10-03 00:04:14

How to make a telegram bot that does silence mode?

Hello, if you can, tell me how to make a bot in Python that, by command / ro, turns on the silence mode, / rooff turns off the silence mode so that none of the users who do not have an admin can write.
In Python, I am zero, thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2020-10-03
@ibritic

Call the setChatPermissions method , passing ChatPermissions to it with the appropriate permissions. In this case, pass all can_send_* parameters with False values

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question