resend

inline suspend fun <T : MessageContent> TelegramBot.resend(chatId: ChatIdentifier, content: T, messageThreadId: MessageThreadId? = chatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<T>

This method will send content to the chatId as is


inline suspend fun <T : MessageContent> TelegramBot.resend(chat: Chat, content: T, messageThreadId: MessageThreadId? = chat.id.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<T>

This method will send content to the chatId as is


inline suspend fun <T : MessageContent> TelegramBot.resend(chatId: ChatIdentifier, message: ContentMessage<T>, messageThreadId: MessageThreadId? = chatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<T>

This method will send message content to the chatId. In difference with copyMessage, this method will use native methods for data sending (like dev.inmo.tgbotapi.extensions.api.send.media.sendPhoto if inoming content is dev.inmo.tgbotapi.types.message.content.PhotoContent)


inline suspend fun <T : MessageContent> TelegramBot.resend(chat: Chat, message: ContentMessage<T>, messageThreadId: MessageThreadId? = chat.id.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<T>

This method will send message content to the chat. In difference with copyMessage, this method will use native methods for data sending (like dev.inmo.tgbotapi.extensions.api.send.media.sendPhoto if inoming content is dev.inmo.tgbotapi.types.message.content.PhotoContent)