├── .env ├── .gitignore ├── README.md ├── __init__.py ├── bot ├── .gitignore ├── __init__.py ├── filters │ └── __init__.py ├── handlers │ ├── __init__.py │ ├── channels │ │ └── __init__.py │ ├── errors │ │ ├── __init__.py │ │ └── error_handler.py │ ├── groups │ │ └── __init__.py │ └── users │ │ ├── __init__.py │ │ ├── echo.py │ │ ├── help.py │ │ └── start.py ├── keyboards │ ├── __init__.py │ ├── default │ │ └── __init__.py │ └── inline │ │ ├── __init__.py │ │ └── callback_datas.py ├── loader.py ├── main.py ├── middlewares │ ├── __init__.py │ └── throttling.py ├── states │ ├── SQLAlchemyStorage.py │ └── __init__.py ├── texts.py └── utils │ ├── __init__.py │ ├── misc │ ├── __init__.py │ └── throttling.py │ ├── notify_admins.py │ └── set_bot_commands.py ├── config.py ├── daemon.py ├── database ├── __init__.py ├── db_config.py ├── loader.py └── models │ ├── __init__.py │ ├── admin.py │ ├── order.py │ ├── product.py │ ├── texts.py │ └── user.py ├── requirements.txt └── server ├── __init__.py ├── auth.py ├── main.py ├── model_views ├── AdminConfig.py ├── AdminModelView.py ├── BotSettingsView.py ├── CKEditorModelView.py ├── HiddenModelView.py ├── HomeView.py ├── OrdersModelView.py ├── TextsModelView.py ├── __init__.py └── mixins │ └── AuthMixin.py └── templates ├── base.html ├── bot_settings_view.html ├── home.html ├── login.html ├── static └── js │ ├── bot_settings.js │ └── home_chart.js └── text_model_view.html /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/.gitignore -------------------------------------------------------------------------------- /bot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/filters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/filters/__init__.py -------------------------------------------------------------------------------- /bot/handlers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/__init__.py -------------------------------------------------------------------------------- /bot/handlers/channels/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/handlers/errors/__init__.py: -------------------------------------------------------------------------------- 1 | from . import error_handler 2 | -------------------------------------------------------------------------------- /bot/handlers/errors/error_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/errors/error_handler.py -------------------------------------------------------------------------------- /bot/handlers/groups/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/handlers/users/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/users/__init__.py -------------------------------------------------------------------------------- /bot/handlers/users/echo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/users/echo.py -------------------------------------------------------------------------------- /bot/handlers/users/help.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/users/help.py -------------------------------------------------------------------------------- /bot/handlers/users/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/handlers/users/start.py -------------------------------------------------------------------------------- /bot/keyboards/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/keyboards/__init__.py -------------------------------------------------------------------------------- /bot/keyboards/default/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/keyboards/inline/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bot/keyboards/inline/callback_datas.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bot/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/loader.py -------------------------------------------------------------------------------- /bot/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/main.py -------------------------------------------------------------------------------- /bot/middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/middlewares/__init__.py -------------------------------------------------------------------------------- /bot/middlewares/throttling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/middlewares/throttling.py -------------------------------------------------------------------------------- /bot/states/SQLAlchemyStorage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/states/SQLAlchemyStorage.py -------------------------------------------------------------------------------- /bot/states/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bot/texts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/texts.py -------------------------------------------------------------------------------- /bot/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/utils/__init__.py -------------------------------------------------------------------------------- /bot/utils/misc/__init__.py: -------------------------------------------------------------------------------- 1 | from .throttling import rate_limit 2 | -------------------------------------------------------------------------------- /bot/utils/misc/throttling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/utils/misc/throttling.py -------------------------------------------------------------------------------- /bot/utils/notify_admins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/utils/notify_admins.py -------------------------------------------------------------------------------- /bot/utils/set_bot_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/bot/utils/set_bot_commands.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/config.py -------------------------------------------------------------------------------- /daemon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/daemon.py -------------------------------------------------------------------------------- /database/__init__.py: -------------------------------------------------------------------------------- 1 | from .loader import db -------------------------------------------------------------------------------- /database/db_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/db_config.py -------------------------------------------------------------------------------- /database/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/loader.py -------------------------------------------------------------------------------- /database/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/__init__.py -------------------------------------------------------------------------------- /database/models/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/admin.py -------------------------------------------------------------------------------- /database/models/order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/order.py -------------------------------------------------------------------------------- /database/models/product.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/product.py -------------------------------------------------------------------------------- /database/models/texts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/texts.py -------------------------------------------------------------------------------- /database/models/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/database/models/user.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/requirements.txt -------------------------------------------------------------------------------- /server/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server/auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/auth.py -------------------------------------------------------------------------------- /server/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/main.py -------------------------------------------------------------------------------- /server/model_views/AdminConfig.py: -------------------------------------------------------------------------------- 1 | 2 | class Categories: 3 | MANAGEMENT = 'Management' 4 | 5 | 6 | -------------------------------------------------------------------------------- /server/model_views/AdminModelView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/AdminModelView.py -------------------------------------------------------------------------------- /server/model_views/BotSettingsView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/BotSettingsView.py -------------------------------------------------------------------------------- /server/model_views/CKEditorModelView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/CKEditorModelView.py -------------------------------------------------------------------------------- /server/model_views/HiddenModelView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/HiddenModelView.py -------------------------------------------------------------------------------- /server/model_views/HomeView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/HomeView.py -------------------------------------------------------------------------------- /server/model_views/OrdersModelView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/OrdersModelView.py -------------------------------------------------------------------------------- /server/model_views/TextsModelView.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/TextsModelView.py -------------------------------------------------------------------------------- /server/model_views/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/__init__.py -------------------------------------------------------------------------------- /server/model_views/mixins/AuthMixin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/model_views/mixins/AuthMixin.py -------------------------------------------------------------------------------- /server/templates/base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/base.html -------------------------------------------------------------------------------- /server/templates/bot_settings_view.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/bot_settings_view.html -------------------------------------------------------------------------------- /server/templates/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/home.html -------------------------------------------------------------------------------- /server/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/login.html -------------------------------------------------------------------------------- /server/templates/static/js/bot_settings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/static/js/bot_settings.js -------------------------------------------------------------------------------- /server/templates/static/js/home_chart.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/static/js/home_chart.js -------------------------------------------------------------------------------- /server/templates/text_model_view.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nmzgnv/bot-template-aiogram-flask/HEAD/server/templates/text_model_view.html --------------------------------------------------------------------------------