A telegram bot to upload an backup images
Find a file
2017-10-22 16:54:44 +03:00
.gitignore Moved all to config + added a file to save users 2017-10-21 17:06:42 +03:00
.jshintrc Initial commit 2017-08-18 13:04:14 +03:00
botEngine.js Cleaning and Docs... 2017-10-22 16:54:44 +03:00
config.js Exported main script as a module... 2017-10-21 21:55:25 +03:00
index.js Cleaning and Docs... 2017-10-22 16:54:44 +03:00
package.json Initial commit 2017-08-18 13:04:14 +03:00
README.md Cleaning and Docs... 2017-10-22 16:54:44 +03:00

Telegram Bot that saves photos

Things you will need to do to run it

  • Get a telegram bot token from the botFather
  • Just talk to BotFather and follow a few simple steps. Once you've created a bot and received your authorization token, copt and paste it into the config file. (botId)
  • Make sure you have NodeJS and npm installed
  • Install dependencies.
  • $ npm install

All done :)

Configuration

This bot can be configured via the config.js file. Keep the structure of this file as is, and change the values to your needs.

Running the bot

I would suggest to use pm2 to manage this process. but its your call...

Production Run:

$ node index.js

Debug Run:

$ node index.js --printMessage

This will print out the firs message the bot receives and will exit.
So you can see user ID and other data attached to the message.