get_forum_topics()¶
- Client.get_forum_topics()¶
Get forum topics from a chat.
Usable by Users Bots
- Parameters:¶
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat. You can also use chat public link in form of t.me/<username> (str).limit (
int, optional) – Limits the number of topics to be retrieved. By default, no limit is applied and all topics are returned.
- Returns:¶
Generator– On success, a generator yieldingForumTopicobjects is returned.
Example
# get all forum topics async for topic in app.get_forum_topics(chat_id): print(topic)- Raises:¶
ValueError – In case of invalid arguments.