0.2.0 • Published 7 months ago

telegram-save-file-bot v0.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

telegram-save-file-bot

A Node.js Telegram Bot to process and save the photos that receives and store them in a configurable folder. It verifies Telegram user ID is in a whitelist before accepting the photo.

Clone

git clone https://github.com/ndresgarc/telegram-save-file-bot.git
npm install

Generate Telegram Bot token

https://core.telegram.org/bots/api#authorizing-your-bot

Get your telegram ID

Using https://t.me/userinfobot from a Telegram client

Create Docker image

    docker build . -t <user>/<image>

Notes

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.

Changelog

v0.2.0

  • Added support for NPX
  • Added support for documents
  • Added support for videos

v0.1.1

  • Added .env file configuration

v0.1.0 (init)

  • Basic functionality, only for photos
0.2.0

7 months ago

0.1.1

7 months ago