diff --git a/.dockerignore b/.dockerignore index 3182e5d..f457081 100644 --- a/.dockerignore +++ b/.dockerignore @@ -27,5 +27,5 @@ .python-version LICENSE README.md -pers.pkl +data/ cert/ diff --git a/.gitignore b/.gitignore index 65c6cf7..adae094 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ **/.idea __pycache__/ cert/ -pers.pkl +data/ docker-compose.yml x.py diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 7108b35..c151dd4 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -16,6 +16,6 @@ services: WEBHOOK_SECRET_TOKEN: 'secret-token' # LOG_LEVEL: 'WARNING' volumes: - - ./pers.pkl: /app/pers.pkl + - ./data: /app/data # - ./cert:/app/cert container_name: tgxmb diff --git a/main.py b/main.py index c5e9e32..72b46cf 100644 --- a/main.py +++ b/main.py @@ -105,7 +105,7 @@ async def post_shutdown(application: Application) -> None: def main(): defaults = Defaults(parse_mode=ParseMode.HTML, allow_sending_without_reply=True) - persistence = PicklePersistence(filepath='pers.pkl') + persistence = PicklePersistence(filepath='data/pers.pkl') application = (ApplicationBuilder() .token(common.BOT_TOKEN) .defaults(defaults)