From d9ebc7f0c6fa714782f1db61175aec136e96388b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=9A=D0=B0=D1=80?= =?UTF-8?q?=D0=B0=D1=87=D0=B5=D0=B2?= Date: Wed, 2 Dec 2026 18:24:42 +0700 Subject: [PATCH] load 0.0.1 --- DockerFile | 3 +++ app.db | Bin 16384 -> 16384 bytes docker-compose.yaml | 4 ++-- main.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) 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 af53bc5e6d1254e69cd225ff7c2df83b906fc981..d43806aab780f093d6679f5d9f0dfd3a87d64ff7 100644 GIT binary patch delta 112 zcmZo@U~Fh$oFL7}F;T{um4iXAOJrlp0)7rA{sRpB5BLvk78KaRuOP?7%AhE&XlQ9@ zVPa-zVqub)lADF5BM)^7F0OGFCfOm!k{Q?WME)! zZen3!U^)4Lyc)|}2L89384VusiwFraGHY^{q~@fi7bWJ#mlmfM6$54d^D{C40P>I< AD*ylh 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))