All Projects → vijfhoek → telematrix

vijfhoek / telematrix

Licence: MIT license
Bridge between Telegram and Matrix

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to telematrix

Matrix Appservice Slack
A Matrix <--> Slack bridge
Stars: ✭ 164 (+72.63%)
Mutual labels:  matrix, bridge
Matrix-EmailBridge
A bridge written in Golang to receive and write emails in matrix
Stars: ✭ 101 (+6.32%)
Mutual labels:  matrix, bridge
Mautrix Facebook
A Matrix-Facebook Messenger puppeting bridge
Stars: ✭ 172 (+81.05%)
Mutual labels:  matrix, bridge
Mautrix Telegram
A Matrix-Telegram hybrid puppeting/relaybot bridge
Stars: ✭ 508 (+434.74%)
Mutual labels:  matrix, bridge
matrix-pstn-bridge
☎️ A Matrix Puppet bridge for the public telephone network that supports a number of VoIP providers (Twillo, Vonage, etc.). Sends and receives voice and SMS.
Stars: ✭ 25 (-73.68%)
Mutual labels:  matrix, bridge
Mautrix Hangouts
A Matrix-Hangouts puppeting bridge
Stars: ✭ 29 (-69.47%)
Mutual labels:  matrix, bridge
ligh7hau5
A Matrix (https://matrix.org/docs/spec/) to Fediverse / ActivityPub client / bridge. Also, some media proxying.
Stars: ✭ 26 (-72.63%)
Mutual labels:  matrix, bridge
matrix-puppet-facebook
a puppetted facebook bridge
Stars: ✭ 90 (-5.26%)
Mutual labels:  matrix, bridge
matrix-puppet-slack
puppet style slack bridge for matrix
Stars: ✭ 46 (-51.58%)
Mutual labels:  matrix, bridge
twitter
A Matrix-Twitter DM puppeting bridge
Stars: ✭ 48 (-49.47%)
Mutual labels:  matrix, bridge
Mautrix Whatsapp
A Matrix-WhatsApp puppeting bridge
Stars: ✭ 484 (+409.47%)
Mutual labels:  matrix, bridge
instagram
A Matrix-Instagram DM puppeting bridge
Stars: ✭ 69 (-27.37%)
Mutual labels:  matrix, bridge
Matterbridge
bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)
Stars: ✭ 4,452 (+4586.32%)
Mutual labels:  matrix, bridge
Matrix Puppet Imessage
A two-way puppeted Matrix bridge for Apple iMessage / Messages
Stars: ✭ 109 (+14.74%)
Mutual labels:  matrix, bridge
Matrix Appservice Discord
A bridge between Matrix and Discord.
Stars: ✭ 383 (+303.16%)
Mutual labels:  matrix, bridge
matrix-sms-bridge
Matrix bridge, that allows you to bridge matrix rooms to SMS with one telephone number only.
Stars: ✭ 62 (-34.74%)
Mutual labels:  matrix, bridge
telegram
A Matrix-Telegram hybrid puppeting/relaybot bridge
Stars: ✭ 914 (+862.11%)
Mutual labels:  matrix, bridge
matrix-appservice-bridge
Bridging infrastructure for Application Services
Stars: ✭ 119 (+25.26%)
Mutual labels:  matrix, bridge
teleirc
Go implementation of a Telegram <=> IRC bridge for use with any IRC channel and Telegram group
Stars: ✭ 112 (+17.89%)
Mutual labels:  bridge, telegram-chat
HiveMind-core
Join the mycroft collective, utils for mycroft-core mesh networking
Stars: ✭ 72 (-24.21%)
Mutual labels:  bridge

DEPRECATED

Use tulir/mautrix-telegram instead. It's much better.

Old README.md for reference:

telematrix

A bridge between Telegram and Matrix. Currently under development — this project isn't considered to be in a usable state right now.

Usage

After the installation, follow these steps to bridge a matrix room to a telegram group chat or channel:

  • Invite the bot to the telegram chat.
  • Send /alias in the telegram chat.
  • The bot will answer with an alias, something like #telegram_-XXXXXXXXX:yourserver.example. Add that as an alias to the matrix room you want to bridge.

In case it doesn't work make sure that all these are true:

  • You are on the same server as the bridge. If that is not the case, you can't set the alias, because you can only set aliases on the server you are on.
  • The matrix room is not set to invite only. The bridge currently doesn't support invite only rooms, so the rooms must be set to be open for all. Guests access is not required though.

Installation

Dependencies

First, create a virtualenv and activate it:

virtualenv venv -p $(which python3)
. venv/bin/activate

Then install the requirements using pip:

pip install -r requirements.txt

Configuration

telematrix configuration

First, copy config.json.example to config.json. Then fill in the fields:

  • tokens.hs: A randomly generated token
  • tokens.as: Another randomly generated token
  • tokens.telegram: The Telegram bot API token, as generated by @BotFather
  • tokens.google: A Google API key, used for URL shortening. Can be left out to disable.
  • hosts.internal: The homeserver host to connect to internally.
  • hosts.external: The external domain of the homeserver, used for generating URLs.
  • hosts.bare: Just the (sub)domain of the server.
  • user_id_format: A Python str.format-style string to format user IDs as
  • db_url: A SQLAlchemy URL for the database. See the SQLAlchemy docs.

Synapse configuration

Copy asconfig.yaml.example to asconfig.yaml, then fill in the fields:

  • url: The host and port of telematrix. Most likely http://localhost:5000.
  • as_token: token.as from telematrix config.
  • hs_token: token.hs from telematrix config.

The rest of the config can be left as is. Finally, add a relative path to this config file in the Synapse's homeserver.yaml:

app_service_config_files:
    - "../telematrix/asconfig.yaml"

Contributions

Want to help? Awesome! This bridge still needs a lot of work, so any help is welcome.

A great start is reporting bugs — if you find it doesn't work like it's supposed to, do submit an issue on Github. Or, if you're a programmer (which you probably are, considering you are on this website), feel free to try to fix it yourself. Just make sure Pylint approves of your code!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].