Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +6 -2
chatbot/plugins/chat.py
CHANGED
@@ -212,7 +212,9 @@ async def handle_photo(client, message):
|
|
212 |
)
|
213 |
seconds_time = time.time()
|
214 |
file_path = await message.download(
|
215 |
-
progress=progress(
|
|
|
|
|
216 |
progress_args=(ai_reply, seconds_time, "Uploading..."),
|
217 |
)
|
218 |
caption = message.caption or "What's this?"
|
@@ -268,7 +270,9 @@ async def handle_video(client, message, model_):
|
|
268 |
seconds_time = time.time()
|
269 |
video_file_name = await message.download(
|
270 |
file_name="newvideo.mp4",
|
271 |
-
progress=progress(
|
|
|
|
|
272 |
progress_args=(ai_reply, seconds_time, "Uploading...")
|
273 |
)
|
274 |
caption = message.caption or "What's this?"
|
|
|
212 |
)
|
213 |
seconds_time = time.time()
|
214 |
file_path = await message.download(
|
215 |
+
progress=progress(
|
216 |
+
reply_markup=InlineKeyboardMarkup(buttons)
|
217 |
+
),
|
218 |
progress_args=(ai_reply, seconds_time, "Uploading..."),
|
219 |
)
|
220 |
caption = message.caption or "What's this?"
|
|
|
270 |
seconds_time = time.time()
|
271 |
video_file_name = await message.download(
|
272 |
file_name="newvideo.mp4",
|
273 |
+
progress=progress(
|
274 |
+
reply_markup=InlineKeyboardMarkup(buttons)
|
275 |
+
),
|
276 |
progress_args=(ai_reply, seconds_time, "Uploading...")
|
277 |
)
|
278 |
caption = message.caption or "What's this?"
|