From e147d7a7a1f581d0ada19077cc22f23fda8a8cb4 Mon Sep 17 00:00:00 2001 From: syn Date: Fri, 8 Jan 2021 23:51:31 +0300 Subject: [wip] some support for telegram methods & types --- src/client/types.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/client/types.rs (limited to 'src/client/types.rs') diff --git a/src/client/types.rs b/src/client/types.rs new file mode 100644 index 0000000..25f1226 --- /dev/null +++ b/src/client/types.rs @@ -0,0 +1,23 @@ +use serde_derive::{Deserialize, Serialize}; +use serde_json::Value as JsonValue; + +#[derive(Serialize, Deserialize, Debug, Default)] +pub struct User { + id: i32, + first_name: String, + last_name: String, + username: String, + phone_number: String, + status: JsonValue, + profile_photo: JsonValue, + is_contact: bool, + is_mutual_contact: bool, + is_verified: bool, + is_support: bool, + restriction_reason: String, + is_scam: bool, + have_access: bool, + #[serde(rename = "type")] + type_: JsonValue, + language_code: String, +} -- cgit v1.2.1-18-gbd029