sendMessage - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / sendMessage

sendMessage

suspend fun TelegramFlow.sendMessage(chatId: Long, replyToMessageId: Long, options: SendMessageOptions?, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent?): Message

Suspend function, which sends a message. Returns the sent message.

Parameters

chatId - Target chat.

replyToMessageId - Identifier of the message to reply to or 0.

options - Options to be used to send the message.

replyMarkup - Markup for replying to the message; for bots only.

inputMessageContent - The content of the message to be sent.

Return Message Describes a message.