MadelineProtoDocs/old_docs/API_docs_v44/methods/messages.getSuggestedDialogFilters.md

42 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2020-10-01 18:05:42 +02:00
---
title: messages.getSuggestedDialogFilters
description: Get [suggested folders](https://core.telegram.org/api/folders)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_getSuggestedDialogFilters.html
---
# Method: messages.getSuggestedDialogFilters
[Back to methods index](index.md)
Get [suggested folders](https://core.telegram.org/api/folders)
### Return type: [Vector\_of\_DialogFilterSuggested](../types/DialogFilterSuggested.md)
### Can bots use this method: **NO**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_DialogFilterSuggested = $MadelineProto->messages->getSuggestedDialogFilters();
```
Or, if you're into Lua:
```lua
Vector_of_DialogFilterSuggested = messages.getSuggestedDialogFilters({})
```