Add method editMessageMedia to Bot class

This commit is contained in:
netkas 2024-11-28 00:45:34 -05:00
parent 2db766529e
commit 4dfa3f3c59

View file

@ -142,6 +142,7 @@
* @method ChatAdministratorRights getMyDefaultAdministratorRights(?bool $for_channels=false) Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
* @method Message editMessageText(string $text, ?string $business_connection_id=null, null|string|int $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?ParseMode $parse_mode=null, MessageEntity[]|null $entities=null, ?LinkPreviewOptions $link_preview_options=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
* @method Message editMessageCaption(?string $business_connection_id=null, null|string|int $chat_id=null, ?int $message_id=null, ?string $inline_message_id=null, ?string $caption=null, ?ParseMode $parse_mode=null, MessageEntity[]|null $caption_entities=null, ?bool $show_caption_above_media=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
* @method Message editMessageMedia(string $media, ?string $business_connection_id=null, null|string|int $chat_id=null, int $message_id=null, ?string $inline_message_id=null, ?InlineKeyboardMarkup $reply_markup=null) Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
* @throws TelegramException if the method execution fails.
*/
class Bot