replyToEphemeralRichMessage

suspend fun TelegramBot.replyToEphemeralRichMessage(chatId: ChatIdentifier, ephemeralMessageParameters: EphemeralMessageParameters, ephemeralMessageId: EphemeralMessageId, richMessage: InputRichMessage, threadId: MessageThreadId? = chatId.threadId, directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, suggestedPostParameters: SuggestedPostParameters? = null, allowSendingWithoutReply: Boolean? = null, checklistTaskId: ChecklistTaskId? = null, pollOptionId: PollOptionPersistentId? = null, replyMarkup: KeyboardMarkup? = null): ChatContentMessage<RichMessageContent>(source)

Explicit helpers replying directly to an incoming ephemeral message identified by chatId/ephemeralMessageId (as opposed to the reply(to = someMessage, ...) smart-branch overloads, which detect an ephemeral dev.inmo.tgbotapi.types.message.abstracts.PossiblyEphemeralMessage target automatically). The outgoing message is itself sent as ephemeral according to ephemeralMessageParameters and replies to ephemeralMessageId.

Each helper has two forms: one taking an explicit EphemeralMessageParameters object plus EphemeralMessageId, and a convenience overload taking an dev.inmo.tgbotapi.types.EphemeralChatId which sources the parameter object plus message identifier (throwing IllegalArgumentException if it does not carry an ephemeralMessageId).

See also


suspend fun TelegramBot.replyToEphemeralRichMessage(chatId: EphemeralChatId, richMessage: InputRichMessage, threadId: MessageThreadId? = chatId.threadId, directMessageThreadId: DirectMessageThreadId? = chatId.directMessageThreadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, suggestedPostParameters: SuggestedPostParameters? = null, allowSendingWithoutReply: Boolean? = null, checklistTaskId: ChecklistTaskId? = null, pollOptionId: PollOptionPersistentId? = null, replyMarkup: KeyboardMarkup? = null): ChatContentMessage<RichMessageContent>(source)