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
app.get_forum_topics_count(chat_id)
- Raises:
raises ValueError: In case of invalid arguments.