Method schema is available as of layer 216. Switch ยป
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| peer | InputPeer | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |
| q | flags.0?string | Search query |
| offset_date | int | Offsets for pagination, for more info click here, date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic. |
| offset_id | int | Offsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0). |
| offset_topic | int | Offsets for pagination, for more info click here, ID of the last found topic (or initially 0). |
| limit | int | Maximum number of results to return, see pagination. For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit. |
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
How to fetch results from large lists of objects.
Telegram allows creating forums with multiple distinct topics.