Method |
Description |
|
answerCallbackQuery ( array $data ) : ServerResponse |
Use this method to send answers to callback queries sent from inline keyboards. On success, True is returned. |
|
answerInlineQuery ( array $data ) : ServerResponse |
Use this method to send answers to an inline query. On success, True is returned. |
|
downloadFile ( Longman\TelegramBot\Entities\File $file ) : boolean |
Download file |
|
editMessageCaption ( array $data ) : ServerResponse |
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). |
|
editMessageReplyMarkup ( array $data ) : ServerResponse |
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). |
|
editMessageText ( array $data ) : ServerResponse |
Use this method to edit text and game messages sent by the bot or via the bot (for inline bots). |
|
emptyResponse ( ) : ServerResponse |
Return an empty Server Response |
|
execute ( string $action, array $data = [] ) : string |
Execute HTTP Request |
|
forwardMessage ( array $data ) : ServerResponse |
Use this method to forward messages of any kind. On success, the sent Message is returned |
|
generateGeneralFakeServerResponse ( array $data = [] ) : array |
Generate general fake server response |
|
getChat ( array $data ) : ServerResponse |
Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success. |
|
getChatAdministrators ( array $data ) : ServerResponse |
Use this method to get a list of administrators in a chat. |
|
getChatMember ( array $data ) : ServerResponse |
Use this method to get information about a member of a chat. Returns a ChatMember object on success. |
|
getChatMembersCount ( array $data ) : ServerResponse |
Use this method to get the number of members in a chat. Returns Int on success. |
|
getFile ( array $data ) : ServerResponse |
Use this method to get basic info about a file and prepare it for downloading. On success, a File object is returned. |
|
getInput ( ) : string |
Set input from custom input or stdin and return it |
|
getMe ( ) : ServerResponse |
Returns basic information about the bot in form of a User object |
|
getUpdates ( array $data ) : ServerResponse |
Get updates |
|
getUserProfilePhotos ( array $data ) : ServerResponse |
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object. |
|
getWebhookInfo ( ) : ServerResponse |
Use this method to get current webhook status. |
|
initialize ( Telegram $telegram ) |
Initialize |
|
kickChatMember ( array $data ) : ServerResponse |
Use this method to kick a user from a group or a supergroup. Returns True on success. |
|
leaveChat ( array $data ) : ServerResponse |
Use this method for your bot to leave a group, supergroup or channel. Returns True on success. |
|
send ( string $action, array $data = [] ) : ServerResponse |
Send command |
|
sendAudio ( array $data, string $file = null ) : ServerResponse |
Use this method to send audio files |
|
sendChatAction ( array $data ) : ServerResponse |
Use this method when you need to tell the user that something is happening on the bot's side. |
|
sendContact ( array $data ) : ServerResponse |
Use this method to send phone contacts. On success, the sent Message is returned. |
|
sendDocument ( array $data, string $file = null ) : ServerResponse |
Use this method to send general files. On success, the sent Message is returned. |
|
sendLocation ( array $data ) : ServerResponse |
Use this method to send point on the map. On success, the sent Message is returned. |
|
sendMessage ( array $data ) : ServerResponse |
Use this method to send text messages. On success, the sent Message is returned |
|
sendPhoto ( array $data, string $file = null ) : ServerResponse |
Use this method to send photos. On success, the sent Message is returned |
|
sendSticker ( array $data, string $file = null ) : ServerResponse |
Use this method to send .webp stickers. On success, the sent Message is returned. |
|
sendToActiveChats ( string $callback_function, array $data, boolean $send_groups = true, boolean $send_super_groups = true, boolean $send_users = true, string $date_from = null, string $date_to = null ) : array |
Send message to all active chats |
|
sendVenue ( array $data ) : ServerResponse |
Use this method to send information about a venue. On success, the sent Message is returned. |
|
sendVideo ( array $data, string $file = null ) : ServerResponse |
Use this method to send video files. On success, the sent Message is returned. |
|
sendVoice ( array $data, string $file = null ) : ServerResponse |
Use this method to send audio files. On success, the sent Message is returned. |
|
setWebhook ( string $url = '', string $file = null ) : ServerResponse |
Set webhook |
|
unbanChatMember ( array $data ) : ServerResponse |
Use this method to unban a previously kicked user in a supergroup. Returns True on success. |
|