mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 06:56:55 +01:00
24 lines
696 B
Markdown
24 lines
696 B
Markdown
---
|
|
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:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|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|
|
|
|
|
|
|
### Return type: [Chats](../types/Chats.md)
|
|
|