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

Add message_thread_id support in teleirc.conf #424

Open
devnull-hub-lab opened this issue Aug 22, 2024 · 1 comment
Open

Add message_thread_id support in teleirc.conf #424

devnull-hub-lab opened this issue Aug 22, 2024 · 1 comment
Labels
new change Adds new capabilities or functionality Telegram Issues relating to Telegram bridge

Comments

@devnull-hub-lab
Copy link

Hi folks!

In telegram group, we can have many chat topics.
Currently the bridge sends messages from all chat topics to IRC. But I would like to restrict it to just one chat topic (eg. General).
In Telegram, this is controlled by the message_thread_id tag.

Is it possible to implement the message_thread_id tag into teleirc.conf?

Either after TELEGRAM_CHAT_ID (eg. -1009999999999/10), or through another parameter (e.g. TELEGRAM_THREAD_ID=10) ?

That would be wonderful!

Thanks!

@devnull-hub-lab devnull-hub-lab added improvement Improves on something that already exists needs triage Metadata needs to be triaged and updated labels Aug 22, 2024
@Tjzabel Tjzabel added new change Adds new capabilities or functionality Telegram Issues relating to Telegram bridge and removed improvement Improves on something that already exists needs triage Metadata needs to be triaged and updated labels Aug 25, 2024
@devnull-hub-lab
Copy link
Author

Thanks @Tjzabel for triage!

I've been researching, and it seems the messageThreadID functionality is in WIP (work-in-progress), and would be released in Telegram API 6.5. You can see it here: go-telegram-bot-api/telegram-bot-api#633

MatterBridge had the same problem (42wim/matterbridge#1942), and the solution found was to fork https://github.com/go-telegram-bot-api/telegram-bot-api , and apply a patch to integrate messageThreadID into the BaseChat structure.

Just to know, the fork created by him was https://github.com/matterbridge/telegram-bot-api/v6

So maybe we can consider in create a telegram-bot-api fork too and apply the patch, until the moment the telegram bot api finishes the commit on the branch.

Just a suggestion.

Thanks,
devnull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new change Adds new capabilities or functionality Telegram Issues relating to Telegram bridge
Projects
None yet
Development

No branches or pull requests

2 participants