From 2a7f90e2040b6369b49348c5d50f5d875a5ccd0d Mon Sep 17 00:00:00 2001 From: fedechkin_alexey Date: Tue, 3 Sep 2019 16:03:16 +0700 Subject: [PATCH] fix input_media.rs --- src/core/types/input_media.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/types/input_media.rs b/src/core/types/input_media.rs index c416295d..435fb48f 100644 --- a/src/core/types/input_media.rs +++ b/src/core/types/input_media.rs @@ -1,4 +1,5 @@ use serde::Deserialize; +use crate::core::types::InputFile; pub enum InputMedia { InputMediaPhoto(InputMediaPhoto), @@ -13,7 +14,7 @@ pub enum ThumbKind { String, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct InputMediaPhoto { type_: String, media: String, @@ -21,7 +22,7 @@ pub struct InputMediaPhoto { parse_mode: Option, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize), Deserialize] pub struct InputMediaVideo { type_: String, media: String, @@ -34,7 +35,7 @@ pub struct InputMediaVideo { supports_streaming: Option, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct InputMediaAnimation { type_: String, media: String, @@ -46,7 +47,7 @@ pub struct InputMediaAnimation { duration: Option, } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct InputMediaAudio { type_: String, media: String, @@ -58,7 +59,7 @@ pub struct InputMediaAudio { title: Option } -#[derive(Debug, Serialize)] +#[derive(Debug, Serialize, Deserialize)] pub struct InputMediaDocument { type_: String, media: String,