2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Clean up Sticker, Venue and Video comments

This commit is contained in:
Dan 2018-07-12 14:16:29 +02:00
parent 109e3836cf
commit bee8d1340b
3 changed files with 24 additions and 24 deletions

View File

@ -73,14 +73,14 @@ class Sticker(Object):
set_name: str = None,
mask_position=None
):
self.file_id = file_id # string
self.thumb = thumb # flags.0?PhotoSize
self.file_name = file_name # flags.1?string
self.mime_type = mime_type # flags.2?string
self.file_size = file_size # flags.3?int
self.date = date # flags.4?int
self.width = width # int
self.height = height # int
self.emoji = emoji # flags.5?string
self.set_name = set_name # flags.6?string
self.mask_position = mask_position # flags.7?MaskPosition
self.file_id = file_id
self.thumb = thumb
self.file_name = file_name
self.mime_type = mime_type
self.file_size = file_size
self.date = date
self.width = width
self.height = height
self.emoji = emoji
self.set_name = set_name
self.mask_position = mask_position

View File

@ -40,7 +40,7 @@ class Venue(Object):
ID = 0xb0700013
def __init__(self, location, title: str, address: str, foursquare_id: str = None):
self.location = location # Location
self.title = title # string
self.address = address # string
self.foursquare_id = foursquare_id # flags.0?string
self.location = location
self.title = title
self.address = address
self.foursquare_id = foursquare_id

View File

@ -65,12 +65,12 @@ class Video(Object):
file_size: int = None,
date: int = None
):
self.file_id = file_id # string
self.thumb = thumb # flags.0?PhotoSize
self.file_name = file_name # flags.1?string
self.mime_type = mime_type # flags.2?string
self.file_size = file_size # flags.3?int
self.date = date # flags.4?int
self.width = width # int
self.height = height # int
self.duration = duration # int
self.file_id = file_id
self.thumb = thumb
self.file_name = file_name
self.mime_type = mime_type
self.file_size = file_size
self.date = date
self.width = width
self.height = height
self.duration = duration