NovaGram

An Object-Oriented PHP library for Telegram Bots

View the Project on GitHub skrtdev/NovaGram

User

This object represents a Telegram user or bot.

Properties

Methods

sendMessage()

Alias of sendMessage A description of the method

$user->sendMessage($text);

getProfilePhotos()

Alias of getUserProfilePhotos A description of the method

$user->getProfilePhotos($limit);

kickChatMember()

Alias of kickChatMember A description of the method

$user->kickChatMember($user_id);

unbanChatMember()

Alias of unbanChatMember A description of the method

$user->unbanChatMember(...$args);

restrictChatMember()

Alias of restrictChatMember A description of the method

$user->restrictChatMember($permissions);

promoteChatMember()

Alias of promoteChatMember A description of the method

$user->promoteChatMember($can_change_info);

setChatAdministratorCustomTitle()

Alias of setChatAdministratorCustomTitle A description of the method

$user->setChatAdministratorCustomTitle($custom_title);

getChatMember()

Alias of getChatMember A description of the method

$user->getChatMember($chat_id);

uploadStickerFile()

Alias of uploadStickerFile A description of the method

$user->uploadStickerFile($png_sticker);

createNewStickerSet()

Alias of createNewStickerSet A description of the method

$user->createNewStickerSet($name);

addStickerToSet()

Alias of addStickerToSet A description of the method

$user->addStickerToSet($name);

setStickerSetThumb()

Alias of setStickerSetThumb A description of the method

$user->setStickerSetThumb($thumb);

setGameScore()

Alias of setGameScore A description of the method

$user->setGameScore($score);