Skip to content

mdingena/FarmGram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published