MadelineProtoDocs/docs/get_dialogs.md
2019-06-01 18:08:28 +02:00

24 lines
409 B
Markdown

---
title: get_dialogs
description: get_dialogs parameters, return type and example
---
## Method: get_dialogs
Gets full list of dialogs
### Return type: Array of [Peer objects](API_docs/types/Peer.md)
### Example ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
$Peers = yield $MadelineProto->get_dialogs();
```
Or, if you're into Lua:
```lua
Peers = get_dialogs()
```