A Node.js Telegram Bot to process and save the information that receives and store them in a configurable folder. It verifies Telegram user ID is in a whitelist.
git clone https://github.com/ndresgarc/telegram-save-file-bot.git
npm install
https://core.telegram.org/bots/api#authorizing-your-bot
Using https://t.me/userinfobot from a Telegram client
docker build . -t <user>/<image>
npm run test
The bot process can be closed. Next time it runs it will process all the pending messages. This bot it's supposed to be executed from a machine that can access the destination folder and with an user that has the proper permissions to write on it.
- Added support for NPX
- Added support for documents
- Added support for videos
- Added .env file configuration
- Basic functionality, only for photos
- Rewrite in Typescript
- Add testing using Jest
- Save date funcionality, format -> "date: 31-dec, New years eve"