mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-25 19:48:43 +00:00
replace animation to be sure that it will be correctly invoked in case of document availability
This commit is contained in:
parent
46a4e7ea27
commit
26d001acce
@ -107,6 +107,12 @@ data class RawMessage(
|
|||||||
caption,
|
caption,
|
||||||
adaptedCaptionEntities
|
adaptedCaptionEntities
|
||||||
)
|
)
|
||||||
|
animation != null -> AnimationContent(
|
||||||
|
animation,
|
||||||
|
document,
|
||||||
|
caption,
|
||||||
|
adaptedCaptionEntities
|
||||||
|
)
|
||||||
document != null -> DocumentContent(
|
document != null -> DocumentContent(
|
||||||
document,
|
document,
|
||||||
caption,
|
caption,
|
||||||
@ -122,12 +128,6 @@ data class RawMessage(
|
|||||||
caption,
|
caption,
|
||||||
adaptedCaptionEntities
|
adaptedCaptionEntities
|
||||||
)
|
)
|
||||||
animation != null -> AnimationContent(
|
|
||||||
animation,
|
|
||||||
document,
|
|
||||||
caption,
|
|
||||||
adaptedCaptionEntities
|
|
||||||
)
|
|
||||||
sticker != null -> StickerContent(sticker)
|
sticker != null -> StickerContent(sticker)
|
||||||
game != null -> GameContent(game)
|
game != null -> GameContent(game)
|
||||||
video_note != null -> VideoNoteContent(video_note)
|
video_note != null -> VideoNoteContent(video_note)
|
||||||
|
Loading…
Reference in New Issue
Block a user