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.offset_date (
int, optional) – Date of the last message of the last found topic.offset_id (
int, optional) – ID of the last message of the last found topic.offset_topic (
int, optional) – ID of the last found topic.
- Returns:
Generator– On success, a generator yieldingForumTopicobjects is returned.
Example
async for topic in app.get_forum_topics(chat_id): print(topic)
- Raises:
raises ValueError: In case of invalid arguments.