MOSPOLYASSISTANT is a telegram bot that allows you to:
- Create your own group
- Manage your group
- Create hierarchy of tags
- Join any group
- ✨Make magic ✨
- python-dotenv
- aiogram
v2.25.1
- sqlalchemy (async for PostgreSQL)
2.0.21
- alembic - migration
- psycopg2-binary - migration
- asyncpg
v0.28.0
- asyncio
/reg
(Availability - all) - Starting user registration./start
(Availability - all) - beginning of interaction with the bot. Greeting the user, in case of administrator rights, launching the admin keyboard/help
(Availability - all) - Showing all available functionality. Depends on the user's rights. (🔴Currently work only for admin)/get_tags
(Availability - all) - Showing all existing tags./get_message
(Availability - all) - Search for a message by id./admin_panel
(Aveilability - admin) Get admin keyboard. (User role check is included)
User roles:
0
- basic member,1
- modder,2
- owner
Better to use linux
or WSL
. Or you can install make
to your windows machine.
- Install postgres (docker image or any other way).
- Use next information OR open
makefile
and run commands manually.
-
Create venv !!! with NAME
env
!!!make venv
1.1 If you install manually - activate venv
-
Install all deps to venv
make install_dep
-
Create .env file
# .env vars TOKEN=<TELEGRAM_BOT_TOKEN> DB_USER=<DB_USER> DB_PASS=<DB_PASS> DB_HOST=<DB_HOST> DB_PORT=<DB_PORT> DB_NAME=<DB_NAME>
-
Make migration use next command
make migration MIG_NAME=<MIG_NAME>
P.S. If you have error there like: [alembic.util.messaging] Can't locate revision identified by '2281337e322'
try to drop all tables and repeat make command AND Create folder
migration/versions
-
Run bot
make run