Skip to content

Commit 3722426

Browse files
authored
Merge pull request #916 from noplanman/915-add_missing_methods
Add 2 missing methods
2 parents 5e5c130 + 630f0c3 commit 3722426

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
55

66
## [Unreleased]
77
### Added
8+
- Add missing `Request::editMessageMedia()` and `CallbackQuery::getChatInstance()` methods.
89
### Changed
910
### Deprecated
1011
### Removed

src/Entities/CallbackQuery.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @method User getFrom() Sender
2222
* @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
2323
* @method string getInlineMessageId() Optional. Identifier of the message sent via the bot in inline mode, that originated the query
24+
* @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.
2425
* @method string getData() Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field
2526
* @method string getGameShortName() Optional. Short name of a Game to be returned, serves as the unique identifier for the game
2627
*/

src/Request.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
* @method static ServerResponse answerInlineQuery(array $data) Use this method to send answers to an inline query. On success, True is returned.
6666
* @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.
6767
* @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.
68+
* @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.
6869
* @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.
6970
* @method static ServerResponse deleteMessage(array $data) Use this method to delete a message, including service messages, with certain limitations. Returns True on success.
7071
* @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
181182
'answerInlineQuery',
182183
'editMessageText',
183184
'editMessageCaption',
185+
'editMessageMedia',
184186
'editMessageReplyMarkup',
185187
'deleteMessage',
186188
'getStickerSet',
@@ -684,6 +686,7 @@ private static function limitTelegramRequests($action, array $data = [])
684686
'setGameScore',
685687
'editMessageText',
686688
'editMessageCaption',
689+
'editMessageMedia',
687690
'editMessageReplyMarkup',
688691
'setChatTitle',
689692
'setChatDescription',

0 commit comments

Comments
 (0)