channels.getForumTopics #

Get topics of a forum

Layer 223

Method schema is available as of layer 216. Switch »

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
channelInputChannelSupergroup
qflags.0?stringSearch query
offset_dateintOffsets 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_idintOffsets for pagination, for more info click here, ID of the last message of the last found topic (or initially 0).
offset_topicintOffsets for pagination, for more info click here, ID of the last found topic (or initially 0).
limitintMaximum 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.

Result #

messages.ForumTopics

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_FORUM_MISSINGThis supergroup is not a forum.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_MONOFORUM_UNSUPPORTEDMonoforums do not support this feature.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.

Pagination in the API #

How to fetch results from large lists of objects.

Forums #

Telegram allows creating forums with multiple distinct topics.

Channels, supergroups, gigagroups and basic groups #

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.