Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(send-audio): fix a boolean instead of file name
  • Loading branch information
alissonlauffer committed Dec 4, 2023
commit 1e38c8f1fea66d388f68dfec73962c606e3f9ce7
2 changes: 1 addition & 1 deletion hydrogram/methods/messages/send_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def progress(current, total):
duration=duration, performer=performer, title=title
),
raw.types.DocumentAttributeFilename(
file_name=file_name or Path(audio).is_file()
file_name=file_name or Path(audio).name
),
],
)
Expand Down