0.0.2 • Published 9 years ago
hubot-telegrambot v0.0.2
Hubot Telegram Bot API Adapter
Hubot adapter for interfacting with the Telegram Bot API
Installation
npm install --save hubot-telegrambot
Configuration
TELEGRAM_BOT_TOKEN
This token will be the bot ID generated for you by Telegram.
TELEGRAM_BOT_PRIVACY
When you have enabled Privacy Mode on your bot. You need to specify this variable as true. This will strip out the extra characters you have to provide so Hubot can correctly handle the message.
Usage
TELEGRAM_BOT_TOKEN=<BOT API TOKEN> TELEGRAM_BOT_PRIVACY=1 ./bin/hubot -a telegrambot
The adapter will poll for new messages every 2 seconds.