Skip to content

Commit

Permalink
Fix send_voice
Browse files Browse the repository at this point in the history
  • Loading branch information
OctoNezd authored and delivrance committed Jul 8, 2020
1 parent 3ec5f76 commit 6b2d6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/client/methods/messages/send_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def send_voice(
file = self.save_file(voice, progress=progress, progress_args=progress_args)
media = types.InputMediaUploadedDocument(
mime_type=self.guess_mime_type(voice.name) or "audio/mpeg",
file=file.name,
file=file,
attributes=[
types.DocumentAttributeAudio(
voice=True,
Expand Down

0 comments on commit 6b2d6ff

Please sign in to comment.