0.3.8 • Published 7 years ago

hubot-multi-adapter v0.3.8

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

hubot-multi-adapter

A hubot adapter that works with multiple services. For now it can send and receive Telegram and socket.io text messages.

Install

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

Telegram Setup

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.

Webhooks

You can send webhooks thru this adapter using the endpoint /webhook. Make sure your request has a body with the user object:

{
  "user": {
    "first_name": "John",
    "last_name": "Doe",
    "room": 238947239874238947,
    "username": "johndoe",
    "service": "telegram",
    "msg_type": "command"
  },
  "text": "example-command"
}
0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago