├── .DS_Store ├── .gitignore ├── 04_Testing ├── 02_Testing_handlers │ ├── .vscode │ │ ├── launch.json │ │ └── settings.json │ ├── README.md │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ └── handlers │ │ │ ├── __init__.py │ │ │ ├── basic_commands.py │ │ │ ├── capybara_handlers.py │ │ │ ├── generate_handlers.py │ │ │ └── user_id_handlers.py │ ├── requirements.txt │ ├── settings.example.yml │ └── tests │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── mocked_aiogram.py │ │ ├── pytest.ini │ │ ├── test_basic_commands.py │ │ ├── test_capybara_handlers.py │ │ ├── test_dice.py │ │ ├── test_generate_handlers.py │ │ └── test_user_id_handlers.py ├── 03_Testing_FSM │ ├── README.md │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ ├── basic_commands.py │ │ │ ├── calculator.py │ │ │ └── ordering_food.py │ │ └── states.py │ ├── requirements.txt │ ├── settings.example.yml │ └── tests │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── mocked_aiogram.py │ │ ├── pytest.ini │ │ ├── test_calculator.py │ │ └── test_ordering_food.py └── 04_Testing_DB │ ├── README.md │ ├── alembic.ini │ ├── bot │ ├── __init__.py │ ├── __main__.py │ ├── config_reader.py │ ├── db │ │ ├── __init__.py │ │ ├── base.py │ │ ├── migrations │ │ │ ├── README │ │ │ ├── env.py │ │ │ ├── script.py.mako │ │ │ └── versions │ │ │ │ └── 001_initial_migration_created_tables.py │ │ ├── models.py │ │ └── requests.py │ ├── handlers │ │ ├── __init__.py │ │ ├── basic_commands.py │ │ └── ordering_food.py │ ├── middlewares │ │ ├── __init__.py │ │ └── db.py │ └── states.py │ ├── docker-compose.yml │ ├── requirements.txt │ ├── settings.example.yml │ └── tests │ ├── __init__.py │ ├── conftest.py │ ├── mocked_aiogram.py │ ├── pytest.ini │ └── test_orders_flow_and_db.py ├── 08_Databases ├── 01-sqlalchemy-core │ ├── README.md │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── db │ │ │ ├── __init__.py │ │ │ └── tables.py │ │ └── handlers │ │ │ ├── __init__.py │ │ │ └── commands.py │ ├── config.example.yml │ ├── docker-compose.example.yml │ └── requirements.txt ├── 02-sqlalchemy-orm │ ├── README.md │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── db │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── models │ │ │ │ ├── __init__.py │ │ │ │ ├── mixins.py │ │ │ │ ├── user.py │ │ │ │ └── user_games.py │ │ │ └── requests.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ ├── commands.py │ │ │ └── for_admin.py │ │ └── middlewares │ │ │ ├── __init__.py │ │ │ ├── session.py │ │ │ └── track_all_users.py │ ├── config.example.yml │ ├── docker-compose.example.yml │ └── requirements.txt └── 03-alembic │ ├── README.md │ ├── before_alembic │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── db │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── models │ │ │ │ ├── __init__.py │ │ │ │ └── user.py │ │ │ └── requests.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ └── commands.py │ │ └── middlewares │ │ │ ├── __init__.py │ │ │ ├── session.py │ │ │ └── track_all_users.py │ └── config.example.yml │ ├── first_migration │ ├── alembic.ini │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── db │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── migrations │ │ │ │ ├── README │ │ │ │ ├── env.py │ │ │ │ ├── script.py.mako │ │ │ │ └── versions │ │ │ │ │ └── 20240814_0013_first_migration.py │ │ │ └── models │ │ │ │ ├── __init__.py │ │ │ │ └── user.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ └── commands.py │ │ └── middlewares │ │ │ ├── __init__.py │ │ │ ├── session.py │ │ │ └── track_all_users.py │ └── config.example.yml │ ├── migration_with_extra_steps │ ├── alembic.ini │ ├── bot │ │ ├── __init__.py │ │ ├── __main__.py │ │ ├── config_reader.py │ │ ├── db │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── migrations │ │ │ │ ├── README │ │ │ │ ├── env.py │ │ │ │ ├── script.py.mako │ │ │ │ └── versions │ │ │ │ │ ├── 20240822_0013_first_migration.py │ │ │ │ │ ├── 20240901_0152_added_license_table.py │ │ │ │ │ └── 20240902_0221_added_expiration_date_column_to_.py │ │ │ └── models │ │ │ │ ├── __init__.py │ │ │ │ ├── licence.py │ │ │ │ └── user.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ └── commands.py │ │ └── middlewares │ │ │ ├── __init__.py │ │ │ ├── session.py │ │ │ └── track_all_users.py │ └── config.example.yml │ └── requirements.txt ├── 10_Template ├── .gitignore ├── Dockerfile ├── I18N │ ├── __init__.py │ ├── factory.py │ └── locales │ │ ├── en │ │ └── LC_MESSAGES │ │ │ └── txt.ftl │ │ └── ru │ │ └── LC_MESSAGES │ │ └── txt.ftl ├── LICENSE ├── README.md ├── alembic.ini ├── app.py ├── bot │ ├── __init__.py │ ├── __main__.py │ ├── config.py │ ├── handling │ │ ├── __init__.py │ │ ├── dialogs │ │ │ ├── __init__.py │ │ │ └── watermark.py │ │ ├── filters │ │ │ ├── __init__.py │ │ │ └── chat_type.py │ │ ├── handlers │ │ │ ├── __init__.py │ │ │ ├── get_user.py │ │ │ └── start.py │ │ ├── middlewares │ │ │ ├── __init__.py │ │ │ ├── database_repo.py │ │ │ ├── dialog_reset.py │ │ │ ├── logging.py │ │ │ └── translator.py │ │ ├── schema.py │ │ └── states │ │ │ ├── __init__.py │ │ │ └── watermark.py │ ├── nats_storage │ │ ├── __init__.py │ │ └── entry.py │ ├── payload │ │ ├── __init__.py │ │ └── convert_task.py │ ├── send_done_photos.py │ └── tests │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── mocked_aiogram.py │ │ ├── pytest.ini │ │ └── test_start.py ├── config.py ├── database │ ├── __init__.py │ ├── config │ │ ├── __init__.py │ │ ├── base.py │ │ ├── common.py │ │ └── orm │ │ │ ├── __init__.py │ │ │ ├── engine.py │ │ │ ├── mixin.py │ │ │ └── session.py │ ├── migration │ │ ├── env.py │ │ └── script.py.mako │ └── models │ │ ├── __init__.py │ │ ├── base.py │ │ └── users.py ├── docker-compose.yaml ├── img-converter │ ├── Dockerfile │ ├── README.md │ ├── app.py │ ├── font.otf │ ├── poetry.lock │ └── pyproject.toml ├── logs │ ├── __init__.py │ ├── config.py │ └── startup.py ├── nats │ ├── Dockerfile │ ├── README.md │ ├── migration.py │ ├── nats.conf │ ├── poetry.lock │ └── pyproject.toml ├── poetry.lock ├── pyproject.toml ├── secrets.toml.example └── settings.toml └── README.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/.gitignore -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/.vscode/launch.json -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/.vscode/settings.json -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/README.md -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/__main__.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/config_reader.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/handlers/__init__.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/handlers/basic_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/handlers/basic_commands.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/handlers/capybara_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/handlers/capybara_handlers.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/handlers/generate_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/handlers/generate_handlers.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/bot/handlers/user_id_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/bot/handlers/user_id_handlers.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/requirements.txt -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/settings.example.yml: -------------------------------------------------------------------------------- 1 | # Токен бота. Можно взять у https://t.me/BotFather 2 | bot_token: "" # Пример: "1234567890:AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRr" 3 | -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/conftest.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/mocked_aiogram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/mocked_aiogram.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/pytest.ini -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/test_basic_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/test_basic_commands.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/test_capybara_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/test_capybara_handlers.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/test_dice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/test_dice.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/test_generate_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/test_generate_handlers.py -------------------------------------------------------------------------------- /04_Testing/02_Testing_handlers/tests/test_user_id_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/02_Testing_handlers/tests/test_user_id_handlers.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/README.md -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/__main__.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/config_reader.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/handlers/__init__.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/handlers/basic_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/handlers/basic_commands.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/handlers/calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/handlers/calculator.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/handlers/ordering_food.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/handlers/ordering_food.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/bot/states.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/bot/states.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/requirements.txt -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/settings.example.yml: -------------------------------------------------------------------------------- 1 | # Токен бота. Можно взять у https://t.me/BotFather 2 | bot_token: "" # Пример: "1234567890:AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRr" 3 | -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/tests/conftest.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/mocked_aiogram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/tests/mocked_aiogram.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/tests/pytest.ini -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/test_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/tests/test_calculator.py -------------------------------------------------------------------------------- /04_Testing/03_Testing_FSM/tests/test_ordering_food.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/03_Testing_FSM/tests/test_ordering_food.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/README.md -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/alembic.ini -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/__main__.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/config_reader.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/__init__.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/base.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/migrations/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/migrations/README -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/migrations/env.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/migrations/script.py.mako -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/migrations/versions/001_initial_migration_created_tables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/migrations/versions/001_initial_migration_created_tables.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/models.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/db/requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/db/requests.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/handlers/__init__.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/handlers/basic_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/handlers/basic_commands.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/handlers/ordering_food.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/handlers/ordering_food.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/middlewares/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/middlewares/db.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/bot/states.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/bot/states.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/docker-compose.yml -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/requirements.txt -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/settings.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/settings.example.yml -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/tests/conftest.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/tests/mocked_aiogram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/tests/mocked_aiogram.py -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/tests/pytest.ini: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_Testing/04_Testing_DB/tests/test_orders_flow_and_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/04_Testing/04_Testing_DB/tests/test_orders_flow_and_db.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/README.md -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/bot/__main__.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/bot/config_reader.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/db/tables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/bot/db/tables.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/bot/handlers/__init__.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/bot/handlers/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/bot/handlers/commands.py -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/config.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/config.example.yml -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/docker-compose.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/docker-compose.example.yml -------------------------------------------------------------------------------- /08_Databases/01-sqlalchemy-core/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/01-sqlalchemy-core/requirements.txt -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/README.md -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/__main__.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/config_reader.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/__init__.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/base.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/models/__init__.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/models/mixins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/models/mixins.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/models/user.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/models/user_games.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/models/user_games.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/db/requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/db/requests.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/handlers/__init__.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/handlers/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/handlers/commands.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/handlers/for_admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/handlers/for_admin.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/middlewares/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/middlewares/session.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/bot/middlewares/track_all_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/bot/middlewares/track_all_users.py -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/config.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/config.example.yml -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/docker-compose.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/docker-compose.example.yml -------------------------------------------------------------------------------- /08_Databases/02-sqlalchemy-orm/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/02-sqlalchemy-orm/requirements.txt -------------------------------------------------------------------------------- /08_Databases/03-alembic/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/README.md -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/__main__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/config_reader.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/db/base.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/db/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/db/models/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/db/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/db/models/user.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/db/requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/db/requests.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/handlers/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/handlers/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/handlers/commands.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/middlewares/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/middlewares/session.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/bot/middlewares/track_all_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/bot/middlewares/track_all_users.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/before_alembic/config.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/before_alembic/config.example.yml -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/alembic.ini -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/__main__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/config_reader.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/base.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/migrations/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/migrations/README -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/migrations/env.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/migrations/script.py.mako -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/migrations/versions/20240814_0013_first_migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/migrations/versions/20240814_0013_first_migration.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/models/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/db/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/db/models/user.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/handlers/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/handlers/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/handlers/commands.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/middlewares/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/middlewares/session.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/bot/middlewares/track_all_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/bot/middlewares/track_all_users.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/first_migration/config.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/first_migration/config.example.yml -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/alembic.ini -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/__main__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/config_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/config_reader.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/base.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/README -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/env.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/script.py.mako -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240822_0013_first_migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240822_0013_first_migration.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240901_0152_added_license_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240901_0152_added_license_table.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240902_0221_added_expiration_date_column_to_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/migrations/versions/20240902_0221_added_expiration_date_column_to_.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/licence.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/licence.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/db/models/user.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/handlers/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/handlers/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/handlers/commands.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/session.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/track_all_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/bot/middlewares/track_all_users.py -------------------------------------------------------------------------------- /08_Databases/03-alembic/migration_with_extra_steps/config.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/migration_with_extra_steps/config.example.yml -------------------------------------------------------------------------------- /08_Databases/03-alembic/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/08_Databases/03-alembic/requirements.txt -------------------------------------------------------------------------------- /10_Template/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/.gitignore -------------------------------------------------------------------------------- /10_Template/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/Dockerfile -------------------------------------------------------------------------------- /10_Template/I18N/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/I18N/__init__.py -------------------------------------------------------------------------------- /10_Template/I18N/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/I18N/factory.py -------------------------------------------------------------------------------- /10_Template/I18N/locales/en/LC_MESSAGES/txt.ftl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/I18N/locales/en/LC_MESSAGES/txt.ftl -------------------------------------------------------------------------------- /10_Template/I18N/locales/ru/LC_MESSAGES/txt.ftl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/I18N/locales/ru/LC_MESSAGES/txt.ftl -------------------------------------------------------------------------------- /10_Template/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/LICENSE -------------------------------------------------------------------------------- /10_Template/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/README.md -------------------------------------------------------------------------------- /10_Template/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/alembic.ini -------------------------------------------------------------------------------- /10_Template/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/app.py -------------------------------------------------------------------------------- /10_Template/bot/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/__main__.py -------------------------------------------------------------------------------- /10_Template/bot/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/config.py -------------------------------------------------------------------------------- /10_Template/bot/handling/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10_Template/bot/handling/dialogs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/dialogs/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/handling/dialogs/watermark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/dialogs/watermark.py -------------------------------------------------------------------------------- /10_Template/bot/handling/filters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/filters/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/handling/filters/chat_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/filters/chat_type.py -------------------------------------------------------------------------------- /10_Template/bot/handling/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/handlers/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/handling/handlers/get_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/handlers/get_user.py -------------------------------------------------------------------------------- /10_Template/bot/handling/handlers/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/handlers/start.py -------------------------------------------------------------------------------- /10_Template/bot/handling/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/middlewares/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/handling/middlewares/database_repo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/middlewares/database_repo.py -------------------------------------------------------------------------------- /10_Template/bot/handling/middlewares/dialog_reset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/middlewares/dialog_reset.py -------------------------------------------------------------------------------- /10_Template/bot/handling/middlewares/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/middlewares/logging.py -------------------------------------------------------------------------------- /10_Template/bot/handling/middlewares/translator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/middlewares/translator.py -------------------------------------------------------------------------------- /10_Template/bot/handling/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/schema.py -------------------------------------------------------------------------------- /10_Template/bot/handling/states/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/states/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/handling/states/watermark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/handling/states/watermark.py -------------------------------------------------------------------------------- /10_Template/bot/nats_storage/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/nats_storage/__init__.py -------------------------------------------------------------------------------- /10_Template/bot/nats_storage/entry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/nats_storage/entry.py -------------------------------------------------------------------------------- /10_Template/bot/payload/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10_Template/bot/payload/convert_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/payload/convert_task.py -------------------------------------------------------------------------------- /10_Template/bot/send_done_photos.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/send_done_photos.py -------------------------------------------------------------------------------- /10_Template/bot/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10_Template/bot/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/tests/conftest.py -------------------------------------------------------------------------------- /10_Template/bot/tests/mocked_aiogram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/tests/mocked_aiogram.py -------------------------------------------------------------------------------- /10_Template/bot/tests/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/tests/pytest.ini -------------------------------------------------------------------------------- /10_Template/bot/tests/test_start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/bot/tests/test_start.py -------------------------------------------------------------------------------- /10_Template/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/config.py -------------------------------------------------------------------------------- /10_Template/database/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /10_Template/database/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/__init__.py -------------------------------------------------------------------------------- /10_Template/database/config/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/base.py -------------------------------------------------------------------------------- /10_Template/database/config/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/common.py -------------------------------------------------------------------------------- /10_Template/database/config/orm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/orm/__init__.py -------------------------------------------------------------------------------- /10_Template/database/config/orm/engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/orm/engine.py -------------------------------------------------------------------------------- /10_Template/database/config/orm/mixin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/orm/mixin.py -------------------------------------------------------------------------------- /10_Template/database/config/orm/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/config/orm/session.py -------------------------------------------------------------------------------- /10_Template/database/migration/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/migration/env.py -------------------------------------------------------------------------------- /10_Template/database/migration/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/migration/script.py.mako -------------------------------------------------------------------------------- /10_Template/database/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/models/__init__.py -------------------------------------------------------------------------------- /10_Template/database/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/models/base.py -------------------------------------------------------------------------------- /10_Template/database/models/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/database/models/users.py -------------------------------------------------------------------------------- /10_Template/docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/docker-compose.yaml -------------------------------------------------------------------------------- /10_Template/img-converter/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/Dockerfile -------------------------------------------------------------------------------- /10_Template/img-converter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/README.md -------------------------------------------------------------------------------- /10_Template/img-converter/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/app.py -------------------------------------------------------------------------------- /10_Template/img-converter/font.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/font.otf -------------------------------------------------------------------------------- /10_Template/img-converter/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/poetry.lock -------------------------------------------------------------------------------- /10_Template/img-converter/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/img-converter/pyproject.toml -------------------------------------------------------------------------------- /10_Template/logs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/logs/__init__.py -------------------------------------------------------------------------------- /10_Template/logs/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/logs/config.py -------------------------------------------------------------------------------- /10_Template/logs/startup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/logs/startup.py -------------------------------------------------------------------------------- /10_Template/nats/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/Dockerfile -------------------------------------------------------------------------------- /10_Template/nats/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/README.md -------------------------------------------------------------------------------- /10_Template/nats/migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/migration.py -------------------------------------------------------------------------------- /10_Template/nats/nats.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/nats.conf -------------------------------------------------------------------------------- /10_Template/nats/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/poetry.lock -------------------------------------------------------------------------------- /10_Template/nats/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/nats/pyproject.toml -------------------------------------------------------------------------------- /10_Template/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/poetry.lock -------------------------------------------------------------------------------- /10_Template/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/pyproject.toml -------------------------------------------------------------------------------- /10_Template/secrets.toml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/secrets.toml.example -------------------------------------------------------------------------------- /10_Template/settings.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/10_Template/settings.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MasterGroosha/advanced-telegram-bots/HEAD/README.md --------------------------------------------------------------------------------