Update src/core/types/chat.rs

Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
Andrew Andersen 2019-09-07 18:27:25 +03:00 committed by GitHub
parent 5bfe47927d
commit cc86b2a73d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ pub struct Chat {
#[serde(rename = "chat_id")]
pub id: i64,
#[serde(flatten)]
pub chat_kind: ChatKind,
pub kind: ChatKind,
#[serde(skip_serializing_if = "Option::is_none")]
pub photo: Option<ChatPhoto>,
}