@@ -51,9 +51,6 @@ class Video(Object):
5151 mime_type (``str``, *optional*):
5252 Mime type of a file as defined by sender.
5353
54- ttl_seconds (``int``):
55- Time-to-live seconds, for secret photos.
56-
5754 supports_streaming (``bool``, *optional*):
5855 True, if the video was uploaded with streaming support.
5956
@@ -63,6 +60,9 @@ class Video(Object):
6360 date (``int``, *optional*):
6461 Date the video was sent in Unix time.
6562
63+ ttl_seconds (``int``. *optional*):
64+ Time-to-live seconds, for secret photos.
65+
6666 thumbs (List of :obj:`Thumbnail`, *optional*):
6767 Video thumbnails.
6868 """
@@ -78,10 +78,10 @@ def __init__(
7878 duration : int ,
7979 file_name : str = None ,
8080 mime_type : str = None ,
81- ttl_seconds : int = None ,
8281 supports_streaming : bool = None ,
8382 file_size : int = None ,
8483 date : int = None ,
84+ ttl_seconds : int = None ,
8585 thumbs : List [Thumbnail ] = None
8686 ):
8787 super ().__init__ (client )
@@ -93,10 +93,10 @@ def __init__(
9393 self .duration = duration
9494 self .file_name = file_name
9595 self .mime_type = mime_type
96- self .ttl_seconds = ttl_seconds
9796 self .supports_streaming = supports_streaming
9897 self .file_size = file_size
9998 self .date = date
99+ self .ttl_seconds = ttl_seconds
100100 self .thumbs = thumbs
101101
102102 @staticmethod
@@ -123,10 +123,10 @@ def _parse(
123123 duration = video_attributes .duration ,
124124 file_name = file_name ,
125125 mime_type = video .mime_type ,
126- ttl_seconds = ttl_seconds ,
127126 supports_streaming = video_attributes .supports_streaming ,
128127 file_size = video .size ,
129128 date = video .date ,
129+ ttl_seconds = ttl_seconds ,
130130 thumbs = Thumbnail ._parse (client , video ),
131131 client = client
132132 )
0 commit comments