Giter Club home page Giter Club logo

anonymous-telegram-bot's Introduction

anonymous-telegram-bot

aiogram bot for anonymous messaging

Tech Stack

  • aiogram
  • sqlalchemy
  • postgres
  • alembic

Installation && Configuration

Installation is pretty simple, you'll need to clone this repository and have installed docker and * docker-compose* on your PC.

Clone project and change directory:

  git clone https://github.com/intezya/anonymous-telegram-bot

  cd anonymous-telegram-bot

Rename .env.example to .env and edit it. This file must looks like:

BOT_TOKEN=<your bot token>

DB_USER=postgres
DB_PASS=postgres
DB_HOST=localhost
DB_PORT=5434
DB_NAME=postgres

POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres

Next, let's figure out how to run the bot.

1. Using docker and docker-compose

The recommended way to use docker-compose.yaml is to build and run the services using Docker Compose. This approach simplifies the setup and ensures that all dependencies and configurations are correctly handled.

docker-compose up --build

This command will build the Docker images if they are not already built and start the services defined in the docker-compose.yaml file.

Note that if you using this method, you should name DB_HOST in .env the same as your postgres container named (set DB_HOST=db if you dont change container name)

2. Without docker

To run the bot without Docker, you need to set up the environment manually.

poetry env use python3.12
poetry update
poetry run python src/bot.py

Code style

wemake-python-styleguide

License

MIT © intezya

anonymous-telegram-bot's People

Contributors

intezya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.