python-3.xtelegrampy-telegram-bot-api

How to get ALL topics for telegram supergroup using TelegramAPI


I need to get all topics for my telegram group using python3 and pyTelegramBotAPI library. How can I do it?

Thanks!

I can get topic ID during creating. But can't get all topics list. Or may be I dont understand how its works. https://pytba.readthedocs.io/en/latest/types.html#telebot.types.ForumTopic


Solution

  • This is not possible. The Telegram Bot API unfortunately does not include functionality to query the list of all existing topics.