Implement support for Topics in the Telegram node. Topics are similar to Slack channels, and they add another level of hierarchy inside of groups.
Currently, if you send messages (or documents, images, video, stickers, location or whatever else) to a supergroup that has Topics enabled, the messages land in the General topic, with no way of controlling it, since the only configurable parameter is the Chat ID, and topics share it, using an additional parameter “message_thread_id” to route to a specific topic.
My use case:
Making a bot send messages to a Topic in a group
… that’s it
I think it would be beneficial to add this because:
Currently, there are no ways to send bot messages (of any type, i.e. text, images, audio, location) to a Topic in a supergroup. All messages sent by the bot will land in the General topic. For organization, you may want to route messages to a specific topic (say, sending application logs into an Errors topic, instead of landing in the General topic, where they may get mixed with other messages).
Hello! I did solve it, but never got around to making the PR.
That being said, another user did create a PR: https://github.com/n8n-io/n8n/pull/5746/files It’s stuck in the PR queue, though.
That being said, you could definitely take the code that is in the PR linked above, make a new (private) plugin based on the Telegram plugin + the fix, and install it on your N8N instance. See here for instructions, though installing on Docker seems somewhat complex, as you need to compile a Docker image.
I haven’t done that, so I can’t provide guidance. It should work, though.
Thank you very much for your reply with the solution
Ohh, I’ve already self-hosted the stack on DO and spent quite a bit of time with CloudFlare Zero Trust troubleshooting, but don’t want to mess around with Docker compilation atm hehe. Hopefully, they’ll review the set of PR changes soon