From 24653e4cdce836a88a21543cfde52028176db232 Mon Sep 17 00:00:00 2001 From: steavy29 Date: Tue, 13 Sep 2016 13:50:04 +0300 Subject: [PATCH] Updated readme.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 41bfd9b..354a7a2 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,8 @@ Currently supported methods: - [Send Message to Contact](#send-message-to-contact) - [Send Media to Contact](#send-media-to-contact) - [Get Messages History for a Contact](#get-messages-history) + - [Get Updates State](#get-updates-state) + - [Get Updates Difference](#get-updates-difference) ####IsPhoneRegistered Check if phone number registered to Telegram. @@ -211,6 +213,32 @@ var userFull = await client.GetUserFull(userId); **Returns**: **UserFull**, User's information +####Get Updates State +Returns a current state of updates. + +_Example_: + +``` +var userFull = await client.GetUpdatesState(); +``` + +**Returns**: **UpdatesState**, Object contains info on state for further updates. + +####Get Updates Difference +Returns diffetence between the current state of updates and transmitted. + +_Example_: + +``` +var userFull = await client.GetUpdatesDifference(currentState.pts, currentState.date, currentState.qts); +``` + +* lastPts - **int**, The most relevant value of parameter pts of (updates.state) +* lastDate - **int**, The most relevant value of parameter date of (updates.state) +* lastQts - **int**, The most relevant value of parameter qts of (updates.state) + +**Returns**: **UpdatesDifference**, Occurred changes. + ## Contributing Contributing is highly appreciated!