A Hubot adapter for Telegram Bots with zero external dependencies.
See src/telegram.coffee
for full documentation.
npm install --save hubot-telegram-bot
Now, run Hubot with the telegram-bot
adapter:
./bin/hubot -a telegram-bot
Variable | Default | Description |
---|---|---|
TELEGRAM_BOT_TOKEN |
N/A | Your bot's authorisation token. You can create one by messaging BotFather /newbot (Docs) |
TELEGRAM_BOT_REFRESH |
1500 | The polling interval in seconds (i.e. how often should we fetch new messages from Telegram) |
TELEGRAM_BOT_WEBHOOK |
false | The webhook URL for incoming messages to be published by Telegram |