25 lines
755 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: getTopChats
description: Returns a list of frequently used chats. Supported only if chat info database is enabled
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-04 23:19:57 +00:00
# Method: getTopChats
2018-04-01 13:19:25 +02:00
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Returns a list of frequently used chats. Supported only if chat info database is enabled
### Parameters:
2018-08-29 11:18:25 +02:00
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|category|[TopChatCategory](../types/TopChatCategory.md) | Category of chats to return | Yes|
|limit|[int](../types/int.md) | Maximum number of chats to be returned, at most 30 | Yes|
2018-04-01 13:19:25 +02:00
### Return type: [Chats](../types/Chats.md)