December 22, 2024

Bridging Matrix and Telegram Rooms

Sponsored

Riot is a popular instant messaging Client that uses Matrix service. In this example we use Riot as matrix client for bridging Matrix and Telegram rooms.

Matrix is about bridging altogether and many bridges for many services like IRC, Slack, Twitter, etc. are available. You can use ‘Manage Integrations’ option from Riot to use this feature. Today we are talking about bridging Matrix and Telegram rooms. In order for bridging Matrix and Telegram rooms we use telematrix bridge. But telebridge is not available in all homeservers. In the following example, we’re using the tchncs.de matrix instance as our homeserver for bridging Matrix and Telegram rooms. It would work with any homeserver the same way if they are providing a telematrix bridge. So first you need to take an account in this server. The beauty of matrix is the ability to choose custom server. If we have enough technical knowledge, we can setup our own server to use this service. And we can write code to do any additional integration we need.

The steps for bridging Matrix and Telegram rooms

  1. Create a Matrix ID in tchncs.de custom server. To do this select custom server from login window and fill https://tchncs.de in Home server URL field.

    Sponsored

    Bridging Matrix and Telegram Rooms
    Using Custom server option to login in Riot app


  2. Add t.me/tchncs_bot in the Telegram group you need to bridge. Then type /alias and send. you will get something like #telegram_-10010 — –:tchncs.de

    Bridging Matrix and Telegram rooms
    Running /alias command

     

  3. Open Settings->addresses in the Riot room which you need to bridge. Then add the alias got from Telegram in the Local addresses for this room field.

    Bridging Matrix and Telegram rooms
    Setting local address

     

    4 . Make sure that the option in Settings-> WHO CAN ACCESS THIS ROOM? must be either Anyone who knows the room’s link, apart from guests or Anyone who knows the room’s link, including guests.

    Bridging Matrix and Telegram rooms
    Room accessibility settings

     

    Wow! The process of bridging Matrix and Telegram rooms is completed. You can now read Telegram group messages in Matrix/Riot rooms and vice versa. The bridging service is available to any matrix servers. The custom server is only needed to connect the services.

Sponsored

One thought on “Bridging Matrix and Telegram Rooms

Share your Opinion

This site uses Akismet to reduce spam. Learn how your comment data is processed.