From a80e004f89cff60d7fcbdc3d29c51a8eafdeb9e2 Mon Sep 17 00:00:00 2001 From: "Dr.Caduceus" Date: Thu, 9 Nov 2023 14:50:57 +0530 Subject: [PATCH] Bump to v1.3 --- bot/server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/server/main.py b/bot/server/main.py index c0d7b8d..577eead 100644 --- a/bot/server/main.py +++ b/bot/server/main.py @@ -54,7 +54,7 @@ async def transmit_file(file_id): async def file_streamer(): current_part = 1 - async for chunk in TelegramBot.stream_media(file, offset = from_bytes // chunk_size): + async for chunk in TelegramBot.stream_media(file, offset = floor(from_bytes // chunk_size)): if not chunk: break