method ApiMethods.editMessageCaption
ApiMethods.editMessageCaption(args: { business_connection_id?: string; chat_id?: number | string; message_id?: number; inline_message_id?: string; caption?: string; parse_mode?: ParseMode; caption_entities?: MessageEntity[]; show_caption_above_media?: boolean; reply_markup?: InlineKeyboardMarkup; }): (Update.Edited & Message.CaptionableMessage) | true

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.

Parameters

args: { business_connection_id?: string; chat_id?: number | string; message_id?: number; inline_message_id?: string; caption?: string; parse_mode?: ParseMode; caption_entities?: MessageEntity[]; show_caption_above_media?: boolean; reply_markup?: InlineKeyboardMarkup; }

Return Type

Usage

import { type ApiMethods } from "types";