diff --git a/bot/commands/play_song.py b/bot/commands/play_song.py index 9878a90..f39eb3f 100755 --- a/bot/commands/play_song.py +++ b/bot/commands/play_song.py @@ -154,7 +154,6 @@ async def _(client: Client, message: Message): await _message.edit("💾 **__Downloading...__**") media = await client.download_media( message.reply_to_message, - block=False, file_name=file_name, progress=progress, progress_args=(client, message.chat.id, _message.id), diff --git a/bot/commands/play_video.py b/bot/commands/play_video.py index 3a5473e..787df56 100755 --- a/bot/commands/play_video.py +++ b/bot/commands/play_video.py @@ -203,7 +203,6 @@ async def _(client: Client, message: Message): await _message.edit("💾 **__Downloading...__**") media = await assistant.download_media( message.reply_to_message, - block=False, file_name=file_name, progress=progress, progress_args=(client, message.chat.id, _message.id), diff --git a/bot/commands/streaming.py b/bot/commands/streaming.py index 5dfa9f8..8e4045c 100755 --- a/bot/commands/streaming.py +++ b/bot/commands/streaming.py @@ -24,7 +24,7 @@ async def _(client: Client, message: Message): return await message.reply( "**__How to use this command.\n\nNext we show two ways to use this command, click on the button with the mode you are looking for to know details.__**" ) - _message = await message.reply("**__Searching...__**") + _message = await message.reply("🔎 **__Searching...__**") await sleep(2) search = message.text.split(maxsplit=1)[1] movie_name = f"/tmp/{str(uuid.uuid4())}.mp4" @@ -70,22 +70,12 @@ async def _(client: Client, message: Message): ) image_urls = image_scraper.find_image_urls() photo = image_scraper.save_images(image_urls, keep_filenames=True) - if media["type"] == "serie": - video = await assistant.download_media( + video = await assistant.download_media( media["file_id"], - block=False, - file_name=serie_name, - progress=progress, - progress_args=(client, message.chat.id, _message.id), - ) - if media["type"] == "movie": - video = await assistant.download_media( - media["file_id"], - block=False, file_name=movie_name, progress=progress, progress_args=(client, message.chat.id, _message.id), - ) + ) if VOICE_CHATS.get(message.chat.id) is None: await _message.edit("🪄 **__Joining the voice chat...__**") await tgcalls.start(message.chat.id)