MessageKtx.editCaption - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.extensions / MessageKtx / editCaption

editCaption

open suspend fun Message.editCaption(chatId: Long, replyMarkup: ReplyMarkup?, caption: FormattedText?): Message

Suspend function, which edits the message content caption. Returns the edited message after the edit is completed on the server side.

Parameters

chatId - The chat the message belongs to.

replyMarkup - The new message reply markup; for bots only.

caption - New message content caption; 0-GetOption("message_caption_length_max") characters.

Return TdApi.Message Describes a message.