Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add getForumTopic or getForumTopicsByID or getForumTopics to Bot API #634

Open
alex-novikov-1990 opened this issue Sep 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alex-novikov-1990
Copy link

alex-novikov-1990 commented Sep 5, 2024

Currently it is impossible to get topic name without getting forum_topic_created or forum_topic_edited event. I suggest adding something like getForumTopic or getForumTopicsByID or getForumTopics to Bot API.

@levlam levlam added the enhancement New feature or request label Sep 6, 2024
@zewebdev1337
Copy link

zewebdev1337 commented Dec 1, 2024

I was creating an issue regarding this without having searched beforehand.

Having found this issue before posting mine I'm just pasting the original text I had written already:

There is currently no way to retrieve topic IDs for a group, they must be retrieved and stored externally without a proper way to get the topic IDs from the bot code itself.

Current workarounds involve:

a) Creating a topic/listening for Topic edit events with the bot and storing its ID externally
b) Retrieving IDs externally (via message link for example) and providing those to the bot.

I'm not sure if it's just a limitation on the API or a not implemented case (I assume the latter as I see the enhancement tag was added to this issue). I think ideally we should be able to explicitly retrieve the topic IDs for a group instead of creating/modifying a topic or having to get them from a client in order to use them in bots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@alex-novikov-1990 @levlam @zewebdev1337 and others