This commit is contained in:
Daniil Gentili 2020-06-18 14:16:30 +02:00
parent 957d790ed3
commit d119b3d80d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +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](#getPwrChat-now-fully-async)
* [Full chat info](#getFullInfo-now-fully-async)
* [Reduced chat info (very fast)](#getInfo-now-fully-async)
* [Just the chat ID (extremely fast)](#get_id-now-fully-async)
* [Just the chat ID (extremely fast)](#getId-now-fully-async)
## getPwrChat ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html))
```php
@ -48,14 +48,14 @@ You can also use `getInfo` to get chat info, see [here for the parameters and th
* Speed: very fast
* Caching: full
## get_id ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html))
## getId ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html))
```php
$id = yield $MadelineProto->getID($update);
```
You can also use `get_id` to get chat ID from updates, messages and other objects.
You can also use `getId` 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>
<a href="https://docs.madelineproto.xyz/docs/DIALOGS.html">Next section</a>

View File

@ -138,7 +138,7 @@ You can find examples for nearly every MadelineProto function in
* [Full chat info with full list of participants](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#getPwrChat-now-fully-async)
* [Full chat info](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#getFullInfo-now-fully-async)
* [Reduced chat info (very fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#getInfo-now-fully-async)
* [Just the chat ID (extremely fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_id-now-fully-async)
* [Just the chat ID (extremely fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#getId-now-fully-async)
* [Getting all chats (dialogs)](https://docs.madelineproto.xyz/docs/DIALOGS.html)
* [Dialog list](https://docs.madelineproto.xyz/docs/DIALOGS.html#getDialogs-now-fully-async)
* [Full dialog info](https://docs.madelineproto.xyz/docs/DIALOGS.html#getFullDialogs-now-fully-async)