An Object-Oriented PHP library for Telegram Bots
This object represents a Telegram user or bot.
$id
: Unique identifier for this user or bot$is_bot
: True, if this user is a bot$first_name
: User’s or bot’s first name$last_name
: Optional. User’s or bot’s last name$username
: Optional. User’s or bot’s username$language_code
: Optional. IETF language tag of the user’s language$can_join_groups
: Optional. True, if the bot can be invited to groups. Returned only in getMe.$can_read_all_group_messages
: Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.$supports_inline_queries
: Optional. True, if the bot supports inline queries. Returned only in getMe.Alias of sendMessage
A description of the method
$user->sendMessage($text);
Alias of getUserProfilePhotos
A description of the method
$user->getProfilePhotos($limit);
Alias of kickChatMember
A description of the method
$user->kickChatMember($user_id);
Alias of unbanChatMember
A description of the method
$user->unbanChatMember(...$args);
Alias of restrictChatMember
A description of the method
$user->restrictChatMember($permissions);
Alias of promoteChatMember
A description of the method
$user->promoteChatMember($can_change_info);
Alias of setChatAdministratorCustomTitle
A description of the method
$user->setChatAdministratorCustomTitle($custom_title);
Alias of getChatMember
A description of the method
$user->getChatMember($chat_id);
Alias of uploadStickerFile
A description of the method
$user->uploadStickerFile($png_sticker);
Alias of createNewStickerSet
A description of the method
$user->createNewStickerSet($name);
Alias of addStickerToSet
A description of the method
$user->addStickerToSet($name);
Alias of setStickerSetThumb
A description of the method
$user->setStickerSetThumb($thumb);
Alias of setGameScore
A description of the method
$user->setGameScore($score);