replyToEphemeralWithDocument

suspend fun TelegramBot.replyToEphemeralWithDocument(chatId: ChatIdentifier, receiverUserId: UserId, ephemeralMessageId: EphemeralMessageId, document: InputFile, text: String? = null, parseMode: ParseMode? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ChatContentMessage<DocumentContent>(source)


suspend fun TelegramBot.replyToEphemeralWithDocument(chatId: EphemeralChatId, document: InputFile, text: String? = null, parseMode: ParseMode? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ChatContentMessage<DocumentContent>(source)

Convenience overload sourcing receiverUserId/ephemeralMessageId from chatId. Throws IllegalArgumentException if chatId does not carry an ephemeralMessageId