forwardMessage

suspend fun TelegramBotApiClient.forwardMessage(requestBody: ForwardMessageRequest): TelegramResponse<Message>

Use this method to forward messages of any kind. On success, the sent Message is returned.

suspend fun TelegramBotApiClient.forwardMessage(chatId: Int, fromChatId: Int, disableNotification: Boolean = false, messageId: Int): TelegramResponse<Message>

Use this method to forward messages of any kind. On success, the sent Message is returned.

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

fromChatId

Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)

disableNotification

Sends the message silently. Users will receive a notification with no sound.

messageId

Message identifier in the chat specified in from_chat_id