2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-30 05:48:14 +00:00

Remove Voice thumb and file_name. Add waveform

This commit is contained in:
Dan 2018-07-11 17:36:49 +02:00
parent 5347080fd1
commit 7509566796

View File

@ -29,11 +29,8 @@ class Voice(Object):
duration (``int``): duration (``int``):
Duration of the audio in seconds as defined by sender. Duration of the audio in seconds as defined by sender.
thumb (:obj:`PhotoSize <pyrogram.PhotoSize>`, *optional*): waveform (``bytes``, *optional*):
Voice thumbnail. Voice waveform.
file_name (``str``, *optional*):
Voice file name.
mime_type (``str``, *optional*): mime_type (``str``, *optional*):
MIME type of the file as defined by sender. MIME type of the file as defined by sender.
@ -51,15 +48,13 @@ class Voice(Object):
self, self,
file_id: str, file_id: str,
duration: int, duration: int,
thumb=None, waveform: bytes = None,
file_name: str = None,
mime_type: str = None, mime_type: str = None,
file_size: int = None, file_size: int = None,
date: int = None): date: int = None):
self.file_id = file_id # string self.file_id = file_id
self.thumb = thumb # flags.0?PhotoSize self.duration = duration
self.file_name = file_name # flags.1?string self.waveform = waveform
self.mime_type = mime_type # flags.2?string self.mime_type = mime_type
self.file_size = file_size # flags.3?int self.file_size = file_size
self.date = date # flags.4?int self.date = date
self.duration = duration # int