From 4dfa3f3c5979451bd9e711c40aabb81c33e8b098 Mon Sep 17 00:00:00 2001 From: netkas Date: Thu, 28 Nov 2024 00:45:34 -0500 Subject: [PATCH] Add method editMessageMedia to Bot class --- src/TgBotLib/Bot.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TgBotLib/Bot.php b/src/TgBotLib/Bot.php index 996ecdb..5ff03c4 100644 --- a/src/TgBotLib/Bot.php +++ b/src/TgBotLib/Bot.php @@ -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