Skip to content

GramIO API Reference / gramio/dist / EditMessageTextParams

Interface: EditMessageTextParams

Defined in: @gramio/types/out/params.d.ts:3628

Params object for editMessageText method

Properties

PropertyTypeDescriptionDefined in
business_connection_id?stringUnique identifier of the business connection on behalf of which the message to be edited was sent@gramio/types/out/params.d.ts:3632
chat_id?string | numberRequired if inline_message_id is not specified. Unique identifier for the target chat or username of the target bot, supergroup or channel in the format @username.@gramio/types/out/params.d.ts:3636
entities?TelegramMessageEntity[]A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode@gramio/types/out/params.d.ts:3656
inline_message_id?stringRequired if chat_id and message_id are not specified. Identifier of the inline message.@gramio/types/out/params.d.ts:3644
link_preview_options?TelegramLinkPreviewOptionsLink preview generation options for the message@gramio/types/out/params.d.ts:3660
message_id?numberRequired if inline_message_id is not specified. Identifier of the message to edit.@gramio/types/out/params.d.ts:3640
parse_mode?"HTML" | "MarkdownV2" | "Markdown"Mode for parsing entities in the message text. See formatting options for more details.@gramio/types/out/params.d.ts:3652
reply_markup?TelegramInlineKeyboardMarkup | { toJSON: TelegramInlineKeyboardMarkup; }A JSON-serialized object for an inline keyboard@gramio/types/out/params.d.ts:3668
rich_message?TelegramInputRichMessageNew rich content of the message; required if text isn't specified. Direct upload of new files and explicit upload of files by a URL isn't supported when an inline message is edited.@gramio/types/out/params.d.ts:3664
text?string | { toString: string; }New text of the message, 1-4096 characters after entity parsing; required if rich_message isn't specified@gramio/types/out/params.d.ts:3648