A ChatBot that allows users to exchange messages anonymously. The main idea is to allow people to communicate without having to reveal their identity. A bot was created for the demonstration @TokumeiChatto
- Python 3.11+
- Docker
- docker-compose
- make
- poetry
-
Clone the repository:
git clone https://github.com/Th3Kanashii/telegram-anonymous-chat-bot.git
-
Rename
.env.dist
to.env
and configure it:Rename the
.env.dist
file to.env
and specify the necessary parameters for the bot to work. -
Build the application and run the bot:
Execute the following commands:
make app-build make app-run
poetry install
Make migration script:
make migration message=MESSAGE_WHAT_THE_MIGRATION_DOES rev_id=ID_MIGRATION
Run migrations:
make migrate
- Parse new used localization keys to update locales files
(
make i18n locale=TRANSLATION_LOCALE
) - Write new locales in
.ftl
files bytranslations/TRANSLATION_LOCALE
- Restart the bot
- Aiogram 3.x (Telegram bot framework)
- PostgreSQL (database)
- SQLAlchemy (working with database from Python)
- Alembic (lightweight database migration tool)
- Project Fluent (modern localization system)