diff --git a/fbchat/models.py b/fbchat/models.py index d085d5d..ad90ea2 100644 --- a/fbchat/models.py +++ b/fbchat/models.py @@ -270,17 +270,20 @@ class FileAttachment(Attachment): class AudioAttachment(Attachment): #: Name of the file filename = None - #: playable_url + #: Url of the audio file url = None #: Duration of the audioclip in milliseconds duration = None + #: Audio type + audio_type = None - def __init__(self, filename=None, url=None, duration=None, **kwargs): + def __init__(self, filename=None, url=None, duration=None, audio_type=None, **kwargs): """Represents an audio file that has been sent as a Facebook attachment""" super(AudioAttachment, self).__init__(**kwargs) self.filename = filename self.url = url self.duration = duration + self.audio_type = audio_type class ImageAttachment(Attachment): #: The extension of the original image (eg. 'png')