2018-04-01 13:19:25 +02:00
|
|
|
---
|
2020-01-05 17:55:38 +01:00
|
|
|
title: getDialogs
|
|
|
|
description: getDialogs parameters, return type and example
|
|
|
|
redirect_from: /get_dialogs.html
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
2020-01-05 17:55:38 +01:00
|
|
|
## Method: getDialogs
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2020-01-08 15:40:04 +01:00
|
|
|
$Peers = yield $MadelineProto->getDialogs();
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2019-10-29 22:23:35 +01:00
|
|
|
Peers = getDialogs()
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|