diff --git a/DockerFile b/DockerFile index 91776e6..e40650e 100644 --- a/DockerFile +++ b/DockerFile @@ -1 +1,4 @@ FROM python:3.14 +COPY . . +RUN pip install --no-cache-dir -r requirements.txt +CMD [ "python", "main.py"] \ No newline at end of file diff --git a/app.db b/app.db index af53bc5..d43806a 100644 Binary files a/app.db and b/app.db differ diff --git a/docker-compose.yaml b/docker-compose.yaml index 8bcb4b4..9da7610 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,6 +10,6 @@ services: - .env build: context: . - dockerfile: Dockerfile + dockerfile: DockerFile networks: - - backend + - auditbot \ No newline at end of file diff --git a/main.py b/main.py index 9622956..fba6fe6 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,7 @@ async def download_data(update: Update, context: ContextTypes.DEFAULT_TYPE) -> N create_download_link(user=user[2], pwd=user[3]) remove_audit_file(user=user[2], pwd=user[3]) chat_id = update.effective_chat.id - context.bot.send_document(chat_id, document=open(f'audit_{now_utc}.txt', 'rb')) + await context.bot.send_document(chat_id, document=open(f'audit_{now_utc}.txt', 'rb')) app.add_handler(CommandHandler("download_data", download_data))