MadelineProto/docs/TD_docs/methods/getTopChats.md

24 lines
696 B
Markdown
Raw Normal View History

2017-08-25 15:05:53 +02:00
---
title: getTopChats
description: Returns a list of frequently used chats. Supported only if chat info database is enabled
---
## 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:
2017-08-25 15:05:53 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2018-03-20 16:42:05 +01:00
|category|[CLICK ME TopChatCategory](../types/TopChatCategory.md) | Yes|Category of chats to return|
|limit|[CLICK ME int](../types/int.md) | Yes|Maximum number of chats to be returned, at most 30|
2017-08-25 15:05:53 +02:00
### Return type: [Chats](../types/Chats.md)