James Peret: d4b8314617 Added reame.md 7 years ago | ||||
---|---|---|---|---|
src | bfa279d5e7 | 7 years ago | ||
.gitignore | d4b8314617 | 7 years ago | ||
package.json | d4b8314617 | 7 years ago | ||
readme.md | d4b8314617 | 7 years ago |
A hubot adapter that works with multiple services. For now it can send and receive Telegram and socket.io text messages.
Install using npm:
npm install hubot-multi-adapter --save
And then start the server with
HUBOT_SOCKETIO_PORT=9090 TELEGRAM_TOKEN=xxxx bin/hubot -a multi-adapter
To get the TELEGRAM_TOKEN
, talk to @bot_father on Telegram.
Also set up a webhook URL in the Telegram API. First delete the old one and then set a new one. Remember that this URL has to be HTTPS:
curl -XPOST https://api.telegram.org/botXXXX/deleteWebhook
curl -XPOST https://api.telegram.org/botXXXX/setWebhook?url=https://example.com/api/telegram
More info on Telegram Bots can be found here.