It makes a bridge between different IM-networks via chat-bot
$ git clone https://github.com/jt3k/chat-linker.git
or
$ curl https://codeload.github.com/jt3k/chat-linker/zip/master | tar -xf- -C /path/to/save
Copy sample-config.json
to app-config.json
and tune it up.
To determine Telegram room parameters, follow the procedure:
/my_id @bot_user_id
Visit https://api.telegram.org/bot<bot_api_key>/getUpdates
and extract
"chat"
object from there. E.g.
{
"id": -1001054401089,
"title": "bimo_test",
"type": "supergroup"
}
$ npm run build
To start the bot:
npm run prod
for production settings or npm run dev
for development.To run tests use following command:
$ npm test
If after the installation does not work git-hooks then run the following command in project directory.
$ node ./node_modules/husky/bin/install.js
Does it support bridging more than one room with a single bot?
What types of Telegram groups are supported?
The bridge only works XMPP -> Telegram, not Telegram -> XMPP.
I can't find any id from my room when I go to https://api.telegram.org/bot<bot_api_key>/getUpdates
MIT © Andrey Gurtovoy