Bridge Telegram - Matrix
Go to file
Ahab Hyde 714c73e1b5 Added 30 seconds timeout long polling 2018-10-19 10:24:24 +02:00
WebPConverter Aumentato sleep time delle richieste, disattivato stickers 2018-07-16 17:12:25 +02:00
icons Aggiornato gitignore, rimosso idea, aggiunte icone 2018-07-16 18:50:10 +02:00
lib Update lib/OLDtelegrambots-3.0-jar-with-dependencies.jar 2018-10-14 01:03:54 +02:00
nbproject update 2018-05-15 17:30:08 +02:00
src/com/em/miguelbridge Added 30 seconds timeout long polling 2018-10-19 10:24:24 +02:00
test/test Revert "First version with 5000 timeout long poll request" 2018-10-14 00:40:58 +02:00
.gitattributes Initial commit 2018-04-08 17:16:20 +02:00
.gitignore Aggiornato gitignore, rimosso idea, aggiunte icone 2018-07-16 18:50:10 +02:00
MiguelBridge.iml Nuovo gitignore per IntelliJ 2018-04-17 15:30:33 +02:00
README.md Update README.md 2018-05-24 12:43:19 +02:00
build.xml Initial commit 2018-04-08 17:16:20 +02:00
manifest.mf Initial commit 2018-04-08 17:16:20 +02:00
sample_botsettings.json Aggiunto richiesta post file, da aggiornare guida file json 2018-04-20 01:11:05 +02:00
sticker.webp Support for sticker, bugfix 2018-05-24 12:41:45 +02:00

README.md

MiguelBridge

Bridge Telegram (https://telegram.org/) - Matrix (https://matrix.org/)

Using https://github.com/rubenlagus/TelegramBots, libwepb http://downloads.webmproject.org/releases/webp/index.html and Java 1.8.0_172.

Installation

  1. Create a folder called "files" in the working directory

  2. Copy sample_botsettings.json inside the new folder and call it botsettings.json

  3. Edit the new file, changing every parameter (keep every value as a string between quotes):

    1. matrixhomeserver: change only the address of the server and keep the rest (it should be like https://something/_matrix/)
    2. tgtoken: write the telegram bot token that @BotFather bot gives you
    3. matrixuser: write the username of the matrix bot (like @username:server.com)
    4. matrixpswd: write the password of the matrix bot

    Then, for every pair of room you want to link togheter:

    1. matrixname: write the name of the matrix room
    2. tgname: write the name of the Telegram room
    3. tgid: write the id of the telegram chat. You can get it by sending the /chatid command to the Telegram Bot
    4. matrixid : write the id of the matrix room. You can get it from the room settings, under "internal id" (like !something:server.com)
    5. lastmessageid: this parameter is managed by the application, don't edit it
  4. Start the program

Now the program should send every text message it receives from the telegram chat room to the linked matrix chat room and vice versa.