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/commands.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/client/commands.rs (limited to 'src/client/commands.rs') diff --git a/src/client/commands.rs b/src/client/commands.rs new file mode 100644 index 0000000..3d9427d --- /dev/null +++ b/src/client/commands.rs @@ -0,0 +1,11 @@ +use super::types::*; +use super::ClientLike; +use crate::error::Result; +use serde_json::json; +use std::future::Future; + +impl super::Client { + pub fn get_me(&self) -> impl Future> { + self.send(json!({"@type": "getMe"})) + } +} -- cgit v1.2.1-18-gbd029