B
B
Bexruz Sayfiddinov2021-01-18 12:46:01
Python
Bexruz Sayfiddinov, 2021-01-18 12:46:01

I am writing a telegram bot for a group. How to implement a feature like "#ro, #ban, #kick"?

To give a ban to a user, the admin must make a reply to the user he wants to ban and write #ban.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-01-18
@SoreMix

Well, look at the contents of the reply_to_message field , if not None - look at the text of the message, if ro ban kick - then apply the appropriate action to the user from reply_to_message -> from -> id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question