7 Commits

Author SHA1 Message Date
dc4abee6bc moved to user' object & fixes 2024-11-07 22:25:32 +03:00
b5e6cfc7f8 update gitignore 2024-11-07 20:52:15 +03:00
ee8d615531 tests for business logic 2024-11-07 20:49:19 +03:00
f7c1fdcf15 remove unused package 2024-11-07 17:09:05 +03:00
1014e4a0d9 more simple url processing 2024-11-07 17:03:58 +03:00
9d90726813 more simple url processing 2024-11-07 17:02:25 +03:00
7e78811724 extract links, delete incoming msg, add sender to reply 2024-11-07 15:49:07 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM python:3.12.7-alpine FROM python:3.12.7-alpine
WORKDIR /app WORKDIR /app
ADD https://github.com/astral-sh/uv/releases/download/0.4.30/uv-installer.sh /uv-installer.sh ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh RUN sh /uv-installer.sh
ENV PATH="/root/.cargo/bin/:$PATH" ENV PATH="/root/.cargo/bin/:$PATH"
@ -9,4 +9,4 @@ ADD pyproject.toml .
ADD uv.lock . ADD uv.lock .
RUN uv sync --frozen RUN uv sync --frozen
ADD . . ADD . .
CMD ["/root/.cargo/bin/uv", "run", "python", "/app/bot.py"] CMD ["uv", "run", "python", "/app/bot.py"]

View File

@ -64,8 +64,8 @@ async def got_message(msg: Message):
await bot.delete_message(msg.chat.id, msg.id, timeout=5) await bot.delete_message(msg.chat.id, msg.id, timeout=5)
except Exception as e: except Exception as e:
await bot.reply_to( await bot.reply_to(
msg, message=msg.id,
"Uoghhhh, i am not an admin here? I can't cleanup this tracking(", text="Uoghhhh, i am not an admin here? I can't cleanup this tracking(",
) )
print(e, flush=True) # todo: логгер print(e, flush=True) # todo: логгер
return return