From 8ba3362eba6fe261e255b8292dcf4d7f7a125b11 Mon Sep 17 00:00:00 2001 From: fedechkin_alexey Date: Mon, 2 Sep 2019 11:21:55 +0700 Subject: [PATCH] add Message struct --- src/core/types.rs | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/core/types.rs b/src/core/types.rs index 3e085379..6b42bc3c 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -25,4 +25,55 @@ pub struct Chat { permissions: Option, sticker_set_name: Option, can_set_sticker_set: Option, +} + +#[derive(Debug, Deserialize)] +pub struct Message { + message_id: i64, + from: Option, + date: i64, + chat: Chat, + forward_from: Option, + forward_from_chat: Option, + forward_from_message_id: Option, + forward_signature: Option, + forward_sender_name: Option, + forward_date: Option, + reply_to_message: Option, + edit_date: Option, + media_group_id: Option, + author_signature: Option, + text: Option, + entities: Option>, + caption_entities: Option>, + audio: Option