Add mroe info

This commit is contained in:
Daniil Gentili 2019-06-27 20:29:24 +02:00
parent cbd913fba2
commit 7414ae3e53
1 changed files with 12 additions and 1 deletions

View File

@ -10,6 +10,7 @@ There are various methods that can be used to fetch info about chats, based on b
* [Full chat info with full list of participants](#get_pwr_chat-now-fully-async)
* [Full chat info](#get_full_info-now-fully-async)
* [Reduced chat info (very fast)](#get_info-now-fully-async)
* [Just the chat ID (extremely fast)](#get_id-now-fully-async)
## get_pwr_chat ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html))
```php
@ -47,4 +48,14 @@ You can also use `get_info` to get chat info, see [here for the parameters and t
* Speed: very fast
* Caching: full
<a href="https://docs.madelineproto.xyz/docs/DIALOGS.html">Next section</a>
## get_id ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html))
```php
$id = yield $MadelineProto->get_id($update);
```
You can also use `get_id` to get chat ID from updates, messages and other objects.
* Speed: very fast
* Caching: full
<a href="https://docs.madelineproto.xyz/docs/DIALOGS.html">Next section</a>