mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-10-15 08:34:46 +00:00
fix(examples): add bot selection and ephemeral photo captions
Limit channel-rights selection to private chats, preserve full chat identifiers, offer bot selection, and use the replied-to sender ID. Supply a caption when replacing ephemeral photo media so the next caption edit starts from a captioned message.
This commit is contained in:
@@ -152,7 +152,10 @@ suspend fun main(vararg args: String) {
|
||||
photoMessage.chat.id,
|
||||
receiverUserId,
|
||||
ephemeralMessageId,
|
||||
TelegramMediaPhoto(photoBytes.asMultipartFile("ephemeral-photo.jpg")),
|
||||
TelegramMediaPhoto(
|
||||
photoBytes.asMultipartFile("ephemeral-photo.jpg"),
|
||||
text = "sample"
|
||||
),
|
||||
)
|
||||
editEphemeralMessageCaption(
|
||||
photoMessage.chat.id,
|
||||
|
||||
Reference in New Issue
Block a user