For help with the Telegram bridge, please visit on Matrix.

The source code for the bridge is available at t2bot/mautrix-telegram on Github, although if you are looking to run your own we recommend using the upstream repository from tulir/mautrix-telegram.

Logging in with your Telegram account

By default the bridge uses a "relay bot" for people who are not logged in to the bridge. This can lead to confusion when the Telegram bridge posts lots of messages in your Telegram chats. By using your own Telegram account, the bridge will send messages to chats with your account rather than the relay bot when you talk on matrix. In addition to that, you also get invited to all current and future Telegram chats - it's like using Telegram in Matrix!

  1. Invite to a private chat.
  2. Send the message !tg login
  3. Click the link and follow the instructions.
  4. The bridge will now start inviting you to all your Telegram chats.

To log out, say !tg logout in the room you just created.

Adding the bridge to your room

  1. Invite @matrix_t2bot to your Telegram group or channel.
  2. In Telegram, send the /id command to get a number returned to you by the bridge.
  3. Invite to the room you want to bridge in Matrix. The bot should have permissions to invite users.
  4. In Matrix, send the message !tg bridge <the number>. Example: !tg bridge -23456789
  5. The bridge will ask you to confirm the bridge. Do this by sending the message !tg continue
  6. Your room should now be bridged to Telegram.

To disconnect the bridge later, say !tg unbridge in Matrix and follow the prompts.