This project focuses on developing a Telegram bot designed to assist users in saving files, such as receipts, documents, photos and notes directly from Telegram to a server. Built using Telegraf.
I strongly recommend using this project on a private server with FileBrowser, so you can send things via Telegram and access them on your computer using the browser.
- File Saving: Users can send documents, images, and notes to the bot, which then stores these files on a server.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. The project is containerized using Docker, ensuring an easy setup and consistent environment across different machines.
- Docker
- A Telegram Bot Token (obtainable through BotFather on Telegram)
-
Clone the repository
git clone https://github.com/tailoralm/take-notes-bot.git cd take-notes-bot -
Setup Environment Variables
Create a
.envfile in the root directory of the project and add your Telegram Bot Token AWS keys are necessary to transcript audios to textTELEGRAM_TOKEN='your telegram bot token' MY_TELEGRAM_ID='your chat id with the bot' DATA_DIR='diretory to store downloaded files' -
Build and Run with Docker
To build the Docker container and run the project, execute:
docker compose up --build
The bot should now be up and running. Send a document or image to your Telegram bot to test the file-saving functionality.
This bot offers a convenient way to save photos, videos, voices, documents and notes directly from Telegram.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to create an issue or pull request.
This project is licensed under the MIT License - see the LICENSE file for details.