Answer the question
In order to leave comments, you need to log in
How to make the bot respond only to the admin?
How to make the bot perform an action, let's say /kick only from the admin, and tell ordinary users that you do not have enough rights.
Answer the question
In order to leave comments, you need to log in
You need to define the user:
1) by account id
2) by IP from which the request is made
3) ask to enter [name and] password.
It is clear that these parameters must be set in the bot in advance so that the bot knows how to distinguish an admin user from a regular user.
Michael Galyuk , but how to make it perform the action of the /kick command, only to a person with a certain ID?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question