diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt index 7ee48d369e..8b76a1d96a 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt @@ -107,6 +107,12 @@ data class RawMessage( caption, adaptedCaptionEntities ) + animation != null -> AnimationContent( + animation, + document, + caption, + adaptedCaptionEntities + ) document != null -> DocumentContent( document, caption, @@ -122,12 +128,6 @@ data class RawMessage( caption, adaptedCaptionEntities ) - animation != null -> AnimationContent( - animation, - document, - caption, - adaptedCaptionEntities - ) sticker != null -> StickerContent(sticker) game != null -> GameContent(game) video_note != null -> VideoNoteContent(video_note)