├── .env.example ├── .gitignore ├── README.md ├── api ├── __init__.py └── example.py ├── bot ├── __init__.py ├── errors.py ├── inline │ ├── __init__.py │ └── ping.py └── pm │ ├── __init__.py │ └── start.py ├── config.py ├── db ├── database.py └── models.py ├── locales ├── en │ └── LC_MESSAGES │ │ └── messages.po └── ru │ └── LC_MESSAGES │ └── messages.po ├── main.py ├── middlewares ├── __init__.py ├── db_middleware.py ├── referer_middleware.py ├── session_middleware.py └── setup_middleware.py ├── migrations └── models │ └── 0_20230918200150_init.py ├── pyproject.toml ├── requirements-dev.txt ├── requirements.txt ├── run.py ├── setup ├── __init__.py ├── local_register.py ├── server_register.py ├── shutdown.py └── startup.py ├── tgtypes ├── __init__.py └── db_user.py └── utils ├── texts.py ├── translations.py └── wait.py /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/README.md -------------------------------------------------------------------------------- /api/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/api/__init__.py -------------------------------------------------------------------------------- /api/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/api/example.py -------------------------------------------------------------------------------- /bot/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/__init__.py -------------------------------------------------------------------------------- /bot/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/errors.py -------------------------------------------------------------------------------- /bot/inline/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/inline/__init__.py -------------------------------------------------------------------------------- /bot/inline/ping.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/inline/ping.py -------------------------------------------------------------------------------- /bot/pm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/pm/__init__.py -------------------------------------------------------------------------------- /bot/pm/start.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/bot/pm/start.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/config.py -------------------------------------------------------------------------------- /db/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/db/database.py -------------------------------------------------------------------------------- /db/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/db/models.py -------------------------------------------------------------------------------- /locales/en/LC_MESSAGES/messages.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/locales/en/LC_MESSAGES/messages.po -------------------------------------------------------------------------------- /locales/ru/LC_MESSAGES/messages.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/locales/ru/LC_MESSAGES/messages.po -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/main.py -------------------------------------------------------------------------------- /middlewares/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/middlewares/__init__.py -------------------------------------------------------------------------------- /middlewares/db_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/middlewares/db_middleware.py -------------------------------------------------------------------------------- /middlewares/referer_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/middlewares/referer_middleware.py -------------------------------------------------------------------------------- /middlewares/session_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/middlewares/session_middleware.py -------------------------------------------------------------------------------- /middlewares/setup_middleware.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/middlewares/setup_middleware.py -------------------------------------------------------------------------------- /migrations/models/0_20230918200150_init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/migrations/models/0_20230918200150_init.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/requirements.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/run.py -------------------------------------------------------------------------------- /setup/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/setup/__init__.py -------------------------------------------------------------------------------- /setup/local_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/setup/local_register.py -------------------------------------------------------------------------------- /setup/server_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/setup/server_register.py -------------------------------------------------------------------------------- /setup/shutdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/setup/shutdown.py -------------------------------------------------------------------------------- /setup/startup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/setup/startup.py -------------------------------------------------------------------------------- /tgtypes/__init__.py: -------------------------------------------------------------------------------- 1 | from tgtypes.db_user import DbUser -------------------------------------------------------------------------------- /tgtypes/db_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/tgtypes/db_user.py -------------------------------------------------------------------------------- /utils/texts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/utils/texts.py -------------------------------------------------------------------------------- /utils/translations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/utils/translations.py -------------------------------------------------------------------------------- /utils/wait.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/4u-org/bot-template/HEAD/utils/wait.py --------------------------------------------------------------------------------