0.2.0 • Published 7 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.json
toconfig.json
. - Change FarmBot
email
andpassword
inconfig.json
. - Replace
REPLACE_WITH_BOTFATHER_TOKEN
with the token @BotFather gave your for your Telegram Bot. - Change
chatId
with 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
.