NovaGram

An Object-Oriented PHP library for Telegram Bots

View the Project on GitHub skrtdev/NovaGram

Chat

This object represents a chat.

Properties

Methods

sendMessage()

Alias of sendMessage A description of the method

$chat->sendMessage($text);

forwardTo()

Alias of forwardMessage A description of the method

$chat->forwardTo(...$args);

deleteMessage()

Alias of deleteMessage A description of the method

$chat->deleteMessage($message_id);

sendAction()

Alias of sendChatAction A description of the method

$chat->sendAction($action);

sendPhoto()

Alias of sendPhoto A description of the method

$chat->sendPhoto($photo);

sendDocument()

Alias of sendDocument A description of the method

$chat->sendDocument($document);

sendVideo()

Alias of sendVideo A description of the method

$chat->sendVideo($video);

sendAnimation()

Alias of sendAnimation A description of the method

$chat->sendAnimation($animation);

sendVoice()

Alias of sendVoice A description of the method

$chat->sendVoice($voice);

sendVideoNote()

Alias of sendVideoNote A description of the method

$chat->sendVideoNote($video_note);

sendMediaGroup()

Alias of sendMediaGroup A description of the method

$chat->sendMediaGroup($media);

sendLocation()

Alias of sendLocation A description of the method

$chat->sendLocation($latitude);

editMessageLiveLocation()

Alias of editMessageLiveLocation A description of the method

$chat->editMessageLiveLocation($message_id);

stopMessageLiveLocation()

Alias of stopMessageLiveLocation A description of the method

$chat->stopMessageLiveLocation($message_id);

sendVenue()

Alias of sendVenue A description of the method

$chat->sendVenue($latitude);

sendContact()

Alias of sendContact A description of the method

$chat->sendContact($phone_number);

sendPoll()

Alias of sendPoll A description of the method

$chat->sendPoll($question);

sendDice()

Alias of sendDice A description of the method

$chat->sendDice($emoji);

kickMember()

Alias of kickChatMember A description of the method

$chat->kickMember($user_id);

unbanMember()

Alias of unbanChatMember A description of the method

$chat->unbanMember($user_id);

restrictMember()

Alias of restrictChatMember A description of the method

$chat->restrictMember($user_id);

promoteMember()

Alias of promoteChatMember A description of the method

$chat->promoteMember($user_id);

setAdministratorCustomTitle()

Alias of setChatAdministratorCustomTitle A description of the method

$chat->setAdministratorCustomTitle($user_id);

setPermissions()

Alias of setChatPermissions A description of the method

$chat->setPermissions($permissions);

Alias of exportChatInviteLink A description of the method

$chat->exportInviteLink(...$args);

setPhoto()

Alias of setChatPhoto A description of the method

$chat->setPhoto($photo);

deletePhoto()

Alias of deleteChatPhoto A description of the method

$chat->deletePhoto(...$args);

setTitle()

Alias of setChatTitle A description of the method

$chat->setTitle($title);

setDescription()

Alias of setChatDescription A description of the method

$chat->setDescription($description);

pinMessage()

Alias of pinChatMessage A description of the method

$chat->pinMessage($message_id);

unpinMessage()

Alias of unpinChatMessage A description of the method

$chat->unpinMessage(...$args);

leave()

Alias of leaveChat A description of the method

$chat->leave(...$args);

get()

Alias of getChat A description of the method

$chat->get(...$args);

getAdministrators()

Alias of getChatAdministrators A description of the method

$chat->getAdministrators(...$args);

getMembersCount()

Alias of getChatMembersCount A description of the method

$chat->getMembersCount(...$args);

getMember()

Alias of getChatMember A description of the method

$chat->getMember($user_id);

setStickerSet()

Alias of setChatStickerSet A description of the method

$chat->setStickerSet($sticker_set_name);

deleteStickerSet()

Alias of deleteChatStickerSet A description of the method

$chat->deleteStickerSet(...$args);

editMessageText()

Alias of editMessageText A description of the method

$chat->editMessageText($message_id);

editMessageCaption()

Alias of editMessageCaption A description of the method

$chat->editMessageCaption($message_id);

editMessageMedia()

Alias of editMessageMedia A description of the method

$chat->editMessageMedia($message_id);

editMessageReplyMarkup()

Alias of editMessageReplyMarkup A description of the method

$chat->editMessageReplyMarkup($message_id);

stopPoll()

Alias of stopPoll A description of the method

$chat->stopPoll($message_id);

sendSticker()

Alias of sendSticker A description of the method

$chat->sendSticker($sticker);

sendInvoice()

Alias of sendInvoice A description of the method

$chat->sendInvoice($title);

sendGame()

Alias of sendGame A description of the method

$chat->sendGame($game_short_name);

setGameScore()

Alias of setGameScore A description of the method

$chat->setGameScore($message_id);

copyMessage()

Alias of copyMessage A description of the method

$chat->copyMessage($message_id);

unpinAllMessages()

Alias of unpinAllChatMessages A description of the method

$chat->unpinAllMessages(...$args);