get_forum_topics_count()¶
- Client.get_forum_topics_count()¶
Get forum topics count 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).
- Returns:¶
``int`` (On success, the count of forum topics is returned.)
Example
# get all forum topics count app.get_forum_topics_count(chat_id)- Raises:¶
ValueError – In case of invalid arguments.: