mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Fix send_voice
This commit is contained in:
parent
3ec5f76b10
commit
6b2d6ffacf
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ class SendVoice(BaseClient):
|
||||||
file = self.save_file(voice, progress=progress, progress_args=progress_args)
|
file = self.save_file(voice, progress=progress, progress_args=progress_args)
|
||||||
media = types.InputMediaUploadedDocument(
|
media = types.InputMediaUploadedDocument(
|
||||||
mime_type=self.guess_mime_type(voice.name) or "audio/mpeg",
|
mime_type=self.guess_mime_type(voice.name) or "audio/mpeg",
|
||||||
file=file.name,
|
file=file,
|
||||||
attributes=[
|
attributes=[
|
||||||
types.DocumentAttributeAudio(
|
types.DocumentAttributeAudio(
|
||||||
voice=True,
|
voice=True,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue