Unverified Commit 3722426d authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #916 from noplanman/915-add_missing_methods

Add 2 missing methods
parents 5e5c130f 630f0c38
......@@ -5,6 +5,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased]
### Added
- Add missing `Request::editMessageMedia()` and `CallbackQuery::getChatInstance()` methods.
### Changed
### Deprecated
### Removed
......
......@@ -21,6 +21,7 @@ use Longman\TelegramBot\Request;
* @method User getFrom() Sender
* @method Message getMessage() Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
* @method string getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
* @method string getChatInstance() Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
* @method string getData() Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
* @method string getGameShortName() Optional. Short name of a Game to be returned, serves as the unique identifier for the game
*/
......
......@@ -65,6 +65,7 @@ use Longman\TelegramBot\Exception\TelegramException;
* @method static ServerResponse answerInlineQuery(array $data) Use this method to send answers to an inline query. On success, True is returned.
* @method static ServerResponse editMessageText(array $data) Use this method to edit text and game messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
* @method static ServerResponse editMessageCaption(array $data) Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
* @method static ServerResponse editMessageMedia(array $data) Use this method to edit audio, document, photo, or video messages. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.
* @method static ServerResponse editMessageReplyMarkup(array $data) Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
* @method static ServerResponse deleteMessage(array $data) Use this method to delete a message, including service messages, with certain limitations. Returns True on success.
* @method static ServerResponse getStickerSet(array $data) Use this method to get a sticker set. On success, a StickerSet object is returned.
......@@ -181,6 +182,7 @@ class Request
'answerInlineQuery',
'editMessageText',
'editMessageCaption',
'editMessageMedia',
'editMessageReplyMarkup',
'deleteMessage',
'getStickerSet',
......@@ -684,6 +686,7 @@ class Request
'setGameScore',
'editMessageText',
'editMessageCaption',
'editMessageMedia',
'editMessageReplyMarkup',
'setChatTitle',
'setChatDescription',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment