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:
2026-10-08 19:30:19 +06:00
parent c0c5805705
commit 48b0e068d5
2 changed files with 22 additions and 11 deletions

View File

@@ -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,