1
1
mirror of https://github.com/ahabhyde/miguelbridge synced 2025-01-10 06:24:20 +01:00
MiguelBridge/README.md

25 lines
1.4 KiB
Markdown
Raw Normal View History

2018-04-09 12:04:28 +02:00
# MiguelBridge
2018-04-20 15:39:54 +02:00
Bridge Telegram (https://telegram.org/) - Matrix (https://matrix.org/)
2018-04-09 12:04:28 +02:00
2018-04-09 20:50:33 +02:00
Using https://github.com/rubenlagus/TelegramBots and Java 1.8.0_162
2018-04-09 20:18:37 +02:00
## 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/client/r0`)
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
2018-04-09 20:21:25 +02:00
3. `tgid`: write the id of the telegram chat. You can get it by sending the `/chatid` command to the Telegram Bot
2018-04-09 20:18:37 +02:00
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.