Skip to content

tailoralm/take-notes-bot

Repository files navigation

Telegram Files & Notes Bot

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.

Recomentations

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.

Features

  • File Saving: Users can send documents, images, and notes to the bot, which then stores these files on a server.

Getting Started

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.

Prerequisites

  • Docker
  • A Telegram Bot Token (obtainable through BotFather on Telegram)

Installation

  1. Clone the repository

    git clone https://github.com/tailoralm/take-notes-bot.git
    cd take-notes-bot
  2. Setup Environment Variables

    Create a .env file in the root directory of the project and add your Telegram Bot Token AWS keys are necessary to transcript audios to text

    TELEGRAM_TOKEN='your telegram bot token'
    MY_TELEGRAM_ID='your chat id with the bot'
    DATA_DIR='diretory to store downloaded files'
    
  3. 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.

Usage

This bot offers a convenient way to save photos, videos, voices, documents and notes directly from Telegram.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to create an issue or pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Bot to save my notes, receipts, pictures and others

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published