removed async task
Browse files- App/Worker.py +3 -3
App/Worker.py
CHANGED
@@ -100,13 +100,13 @@ def render_video(directory: str, output_directory: str):
|
|
100 |
|
101 |
|
102 |
@celery.task(name="send")
|
103 |
-
|
104 |
temp_dir: str, output_dir: str, chat_id: int = -1002069945904
|
105 |
):
|
106 |
try:
|
107 |
print("sending...")
|
108 |
-
|
109 |
-
await bot.send_file(chat_id, file=output_dir, caption="Your video caption")
|
110 |
except Exception as e:
|
111 |
print(e)
|
112 |
finally:
|
|
|
100 |
|
101 |
|
102 |
@celery.task(name="send")
|
103 |
+
def cleanup_temp_directory(
|
104 |
temp_dir: str, output_dir: str, chat_id: int = -1002069945904
|
105 |
):
|
106 |
try:
|
107 |
print("sending...")
|
108 |
+
bot.send_video(chat_id=chat_id,caption="Your Video Caption",file_name=output_dir)
|
109 |
+
# await bot.send_file(chat_id, file=output_dir, caption="Your video caption")
|
110 |
except Exception as e:
|
111 |
print(e)
|
112 |
finally:
|