Skip to content

Commit

Permalink
Rename add_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
AlberLC committed Aug 14, 2022
1 parent de98939 commit 87b91f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multibot/bots/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def bytes_file() -> io.BytesIO | None:

bytes_ = media.bytes_
if inline_ and media.type_ is MediaType.AUDIO:
bytes_ = await flanautils.add_metadata(bytes_, {'title': f'bot_media.{media.extension}'}, overwrite=False)
bytes_ = await flanautils.edit_metadata(bytes_, {'title': f'bot_media.{media.extension}'}, overwrite=False)
file_ = io.BytesIO(bytes_)
file_.name = f"{media.title or 'bot_media'}.{media.extension}"
return file_
Expand Down

0 comments on commit 87b91f8

Please sign in to comment.