Skip to content

Commit

Permalink
fix: wrong media_group id
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Gorn committed Jun 10, 2024
1 parent 2684404 commit ad949f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bot/functions/youtube_dl_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ async def youtube_dl_call_back(bot: Client, update: CallbackQuery):
media=media_album_p
)
if client.config.DUMP_ID:
await bot.copy_media_group(client.config.DUMP_ID, from_chat_id=update.from_user.id, message_id=media_group[0].media_group_id, captions=f'User Name: {update.from_user.first_name}\nUser ID: {update.from_user.id}\nLink: {youtube_dl_url}')
await bot.copy_media_group(client.config.DUMP_ID, from_chat_id=update.from_user.id, message_id=media_group[0].id, captions=f'User Name: {update.from_user.first_name}\nUser ID: {update.from_user.id}\nLink: {youtube_dl_url}')
for photo in media_album_p:
os.remove(photo.media)
os.remove(download_directory)
Expand Down

0 comments on commit ad949f1

Please sign in to comment.