mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
add Chat struct
This commit is contained in:
parent
34a38a0824
commit
2567ae1825
1 changed files with 17 additions and 0 deletions
|
@ -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>,
|
||||||
|
}
|
Loading…
Reference in a new issue