add Chat struct

This commit is contained in:
fedechkin_alexey 2019-09-02 11:02:50 +07:00
parent 34a38a0824
commit 2567ae1825

View file

@ -9,3 +9,20 @@ pub struct User {
username: Option<String>, username: Option<String>,
language_code: Option<String>, language_code: Option<String>,
} }
#[derive(Debug, Deserialize)]
pub struct Chat {
id: i64,
chat_type: String,
title: Option<String>,
username:Option<String>,
first_name: Option<String>,
last_name: Option<String>,
photo: Option<ChatPhoto>,
description: Option<String>,
invite_link: Option<String>,
pinned_message: Option<Message>,
permissions: Option<ChatPermissions>,
sticker_set_name: Option<String>,
can_set_sticker_set: Option<Bool>,
}