From 569cb9b1f91799056d0f1c6fdfb64887f7ee6d60 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 21 Jun 2025 02:34:58 +0500 Subject: feat: video note support --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index dd5ca7e..acaeedc 100644 --- a/main.py +++ b/main.py @@ -59,6 +59,8 @@ async def download_file(update: Update, _: CallbackContext) -> None: file_path = await download_locally_file(update, update.message.photo[-1]) elif update.message.video is not None: file_path = await download_locally_file(update, update.message.video) + elif update.message.video_note is not None: + file_path = await download_locally_file(update, update.message.video_note) if file_path is not None: try: @@ -73,7 +75,7 @@ async def download_file(update: Update, _: CallbackContext) -> None: def run(): print("Starting the bot...") app = ApplicationBuilder().token("xd").build() - app.add_handler(MessageHandler(filters.PHOTO | filters.VIDEO, download_file)) + app.add_handler(MessageHandler(filters.PHOTO | filters.VIDEO | filters.VIDEO_NOTE, download_file)) app.run_polling() -- cgit v1.2.3