You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|Sagi Dayan 57f4d33134||4 years ago|
|.gitignore||4 years ago|
|.jshintrc||4 years ago|
|README.md||4 years ago|
|botEngine.js||4 years ago|
|config.js||4 years ago|
|index.js||4 years ago|
|package.json||4 years ago|
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 :)
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...
$ node index.js
$ 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.