From 2567ae18258fb384e3645f0202a5265ccfe0fcff Mon Sep 17 00:00:00 2001 From: fedechkin_alexey Date: Mon, 2 Sep 2019 11:02:50 +0700 Subject: [PATCH] add Chat struct --- src/core/types.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/core/types.rs b/src/core/types.rs index bd9b6a68..3e085379 100644 --- a/src/core/types.rs +++ b/src/core/types.rs @@ -9,3 +9,20 @@ pub struct User { username: Option, language_code: Option, } + +#[derive(Debug, Deserialize)] +pub struct Chat { + id: i64, + chat_type: String, + title: Option, + username:Option, + first_name: Option, + last_name: Option, + photo: Option, + description: Option, + invite_link: Option, + pinned_message: Option, + permissions: Option, + sticker_set_name: Option, + can_set_sticker_set: Option, +} \ No newline at end of file