update
This commit is contained in:
@@ -270,17 +270,20 @@ class FileAttachment(Attachment):
|
|||||||
class AudioAttachment(Attachment):
|
class AudioAttachment(Attachment):
|
||||||
#: Name of the file
|
#: Name of the file
|
||||||
filename = None
|
filename = None
|
||||||
#: playable_url
|
#: Url of the audio file
|
||||||
url = None
|
url = None
|
||||||
#: Duration of the audioclip in milliseconds
|
#: Duration of the audioclip in milliseconds
|
||||||
duration = None
|
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"""
|
"""Represents an audio file that has been sent as a Facebook attachment"""
|
||||||
super(AudioAttachment, self).__init__(**kwargs)
|
super(AudioAttachment, self).__init__(**kwargs)
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.url = url
|
self.url = url
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
|
self.audio_type = audio_type
|
||||||
|
|
||||||
class ImageAttachment(Attachment):
|
class ImageAttachment(Attachment):
|
||||||
#: The extension of the original image (eg. 'png')
|
#: The extension of the original image (eg. 'png')
|
||||||
|
Reference in New Issue
Block a user