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

Added support for group topics #132

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

Anton2319
Copy link

This PR adds support for topic-structured groups, officially known as forums. This was requested in Issue #131. Legacy supergroup behaviour is unchanged; new logic is only applied when telegram_send detects that it is being configured to work inside a forum. Topic-separation works by replying to a "forum_topic_created" message. An additional configuration field was added to keep a permanent reference to this message, called "reply_to_message_id". If "reply_to_message_id" is present in the configuration, the bot will always reply to that message, which will result in a message appearing inside a topic. Examples of reworked logic are shown below:

Legacy groups:
Legacy groups

Forums:
Forums

Forums (alternated topic):
Forums (alternated topic)

New configuration:
New configuration

Old configuration:
Old configuration

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

Successfully merging this pull request may close these issues.

1 participant