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:
parent
109e3836cf
commit
bee8d1340b
@ -73,14 +73,14 @@ class Sticker(Object):
|
|||||||
set_name: str = None,
|
set_name: str = None,
|
||||||
mask_position=None
|
mask_position=None
|
||||||
):
|
):
|
||||||
self.file_id = file_id # string
|
self.file_id = file_id
|
||||||
self.thumb = thumb # flags.0?PhotoSize
|
self.thumb = thumb
|
||||||
self.file_name = file_name # flags.1?string
|
self.file_name = file_name
|
||||||
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.width = width # int
|
self.width = width
|
||||||
self.height = height # int
|
self.height = height
|
||||||
self.emoji = emoji # flags.5?string
|
self.emoji = emoji
|
||||||
self.set_name = set_name # flags.6?string
|
self.set_name = set_name
|
||||||
self.mask_position = mask_position # flags.7?MaskPosition
|
self.mask_position = mask_position
|
||||||
|
@ -40,7 +40,7 @@ class Venue(Object):
|
|||||||
ID = 0xb0700013
|
ID = 0xb0700013
|
||||||
|
|
||||||
def __init__(self, location, title: str, address: str, foursquare_id: str = None):
|
def __init__(self, location, title: str, address: str, foursquare_id: str = None):
|
||||||
self.location = location # Location
|
self.location = location
|
||||||
self.title = title # string
|
self.title = title
|
||||||
self.address = address # string
|
self.address = address
|
||||||
self.foursquare_id = foursquare_id # flags.0?string
|
self.foursquare_id = foursquare_id
|
||||||
|
@ -65,12 +65,12 @@ class Video(Object):
|
|||||||
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.thumb = thumb
|
||||||
self.file_name = file_name # flags.1?string
|
self.file_name = file_name
|
||||||
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.width = width # int
|
self.width = width
|
||||||
self.height = height # int
|
self.height = height
|
||||||
self.duration = duration # int
|
self.duration = duration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user