Compare commits

...

2 Commits

Author SHA1 Message Date
Roman Krček
8cc1c55026 Fix awaits for async functions
Some checks failed
Build Docker image / test (push) Has started running
Build Docker image / build (push) Has been cancelled
2025-02-16 17:23:25 +01:00
Roman Krček
e12eaa0fe1 Fix makefile for moder docker compose 2025-02-16 17:22:11 +01:00
2 changed files with 3 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ ts := $(shell /bin/date "+%Y-%m-%d")
platform = linux/arm/v7 # linux/amd64
up:
sudo docker-compose up --build
sudo docker compose up --build
entry:
sudo docker pull --platform $(platform) $(docker_image):latest && \

View File

@@ -56,7 +56,7 @@ async def message_handler(_, message: Message):
msg = f"Downloading video {i+1}/{len(urls)}..."
log.info(msg)
await message.reply_text(msg)
utils.download_tt_video(url)
await utils.download_tt_video(url)
await message.reply_text("Done.")
@@ -64,10 +64,8 @@ async def message_handler(_, message: Message):
@app.on_message(filters.media)
@security.protected
async def media_handler(client, message: Message):
await message.reply_text("Downloading media...")
utils.handle_media_message_contents(client, message)
await utils.handle_media_message_contents(client, message)
if __name__ == "__main__":