0.2.0 • Published 7 years ago

farmgram v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

FarmGram

A Node.js interface between FarmBot.io and Telegram.

Setup

  1. Talk to @BotFather on Telegram and create a new Telegram Bot.
  2. On Node.js, npm install farmgram
  3. In the package directory, copy example.config.json to config.json.
  4. Change FarmBot email and password in config.json.
  5. Replace REPLACE_WITH_BOTFATHER_TOKEN with the token @BotFather gave your for your Telegram Bot.
  6. Change chatId with your chat ID in config.json. This can also be a group chat ID!
  7. import FarmGram from 'farmgram';
  8. let fg = new FarmGram;

Usage

  1. Open a chat with your Telegram Bot, say /start.
  2. Test response by saying /ping.
  3. Test FarmBot connection by saying /test.
0.2.0

7 years ago

0.1.0

7 years ago