I think these features will come in handy :)
if (isAdmin($user_id))
{
// Content for Admins
}
if (!isAdmin($user_id))
{
// Content for Users
}
I have 6 administrators of my bot. And to check the existence of everyone's rights is too cumbersome :D
It's already there.
public function Telegram::isAdmin($user_id = null) bool
Check if the passed user is an admin
If no user id is passed, the current update is checked for a valid message sender.
$this->getTelegram()->isAdmin();
@chuv1 oh, thank you!
Most helpful comment
It's already there.
public function Telegram::isAdmin($user_id = null) bool
Check if the passed user is an admin
If no user id is passed, the current update is checked for a valid message sender.
$this->getTelegram()->isAdmin();