0.2.0 • Published 9 years ago
farmgram v0.2.0
FarmGram
A Node.js interface between FarmBot.io and Telegram.
Setup
- Talk to @BotFather on Telegram and create a new Telegram Bot.
- On Node.js,
npm install farmgram - In the package directory, copy
example.config.jsontoconfig.json. - Change FarmBot
emailandpasswordinconfig.json. - Replace
REPLACE_WITH_BOTFATHER_TOKENwith the token @BotFather gave your for your Telegram Bot. - Change
chatIdwith your chat ID inconfig.json. This can also be a group chat ID! import FarmGram from 'farmgram';let fg = new FarmGram;
Usage
- Open a chat with your Telegram Bot, say
/start. - Test response by saying
/ping. - Test FarmBot connection by saying
/test.