-
-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin mode #47
Comments
If you want to check if a user is a channel admin you can use the getChatMember function which returns a ChatMember object with the status value of “creator”, “administrator”, “member”, “left” or “kicked”. if ($text == "/adminCommand" && data["message"]["from"]["id"] == "admin_user_id") {
//do stuff
} Of course you can save the admins user_id list in a file/database |
no i want check the user is a bot admin to do some work. |
Telegram's bots don't have the concept of "bot admin" so you need to implement it yourself. |
How check the user is admin and set some spetial manage to admins bot? And other user cant do that.
Just admin.
And how set user is admin?
The text was updated successfully, but these errors were encountered: