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)
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
|
2018-10-17 23:10:50 +08:00
|
|
|
```php
|
2018-04-01 13:19:25 +02:00
|
|
|
$MadelineProto = new \danog\MadelineProto\API();
|
|
|
|
$MadelineProto->start();
|
|
|
|
|
|
|
|
$Peers = $MadelineProto->get_dialogs();
|
|
|
|
```
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
2018-10-17 23:10:50 +08:00
|
|
|
```lua
|
2018-04-01 13:19:25 +02:00
|
|
|
Peers = get_dialogs()
|
|
|
|
```
|
|
|
|
|