From 71c6a23628a76c7fe705cc0015982117c30a5fc3 Mon Sep 17 00:00:00 2001 From: fedechkin_alexey Date: Mon, 2 Sep 2019 11:25:05 +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 1a4468c7..7143d846 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -27,6 +27,57 @@ pub struct Chat { 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