MadelineProtoDocs/docs/getDialogs.md

24 lines
407 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
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)
2019-06-01 18:08:28 +02:00
### Example ([now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
2018-04-01 13:19:25 +02:00
```php
2019-10-29 22:23:35 +01:00
$Peers = yield $MadelineProto->getDialogs();
2018-04-01 13:19:25 +02:00
```
Or, if you're into Lua:
```lua
2019-10-29 22:23:35 +01:00
Peers = getDialogs()
2018-04-01 13:19:25 +02:00
```