mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Updated readme.md
This commit is contained in:
parent
1c31794751
commit
24653e4cdc
28
README.md
28
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!
|
||||
|
|
|
|||
Loading…
Reference in a new issue