How to set up bot owners or admins #235
Unanswered
Diego-Schmidt
asked this question in
Q&A
Replies: 2 comments 2 replies
-
No. There is not. but it can be developed. Can you explain your entire use case? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ah yes it is possible $x = file_get_contents("php://input"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Is there any example on how to set up bot owners to respond to "admin" commands?
You get the user id from message.chatId.user ?
Can you do something like
$owner = '65465456465';
$getuser = ¿?¿?¿ message.chatId.user;
if($message == '/restart' && $getuser == $owner)
{ do something }
else {
echo 'You can't use that command';
}
Beta Was this translation helpful? Give feedback.
All reactions