1
0
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:
InsanusMokrassar 2019-06-28 19:05:40 +08:00
parent 46a4e7ea27
commit 26d001acce

View File

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