MadelineProtoDocs/docs/TD_docs/methods/getTopChats.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

25 lines
751 B
Markdown

---
title: getTopChats
description: Returns a list of frequently used chats. Supported only if chat info database is enabled
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: getTopChats
[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:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|category|[TopChatCategory](../types/TopChatCategory.md) | Yes|Category of chats to return|
|limit|[int](../types/int.md) | Yes|Maximum number of chats to be returned, at most 30|
### Return type: [Chats](../types/Chats.md)