get_forum_topics()
- Client.get_forum_topics()
Get one or more topic 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.
- 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.