mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Reformat __init__ parameters
This commit is contained in:
parent
e9a362923f
commit
92118e3608
@ -52,14 +52,8 @@ class InputMediaAnimation(InputMedia):
|
||||
Animation duration.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
media: str,
|
||||
thumb: str = None,
|
||||
caption: str = "",
|
||||
parse_mode: str = "",
|
||||
width: int = 0,
|
||||
height: int = 0,
|
||||
duration: int = 0):
|
||||
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0,
|
||||
height: int = 0, duration: int = 0):
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
||||
self.thumb = thumb
|
||||
|
@ -53,14 +53,8 @@ class InputMediaAudio(InputMedia):
|
||||
Title of the audio
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
media: str,
|
||||
thumb: str = None,
|
||||
caption: str = "",
|
||||
parse_mode: str = "",
|
||||
duration: int = 0,
|
||||
performer: int = "",
|
||||
title: str = ""):
|
||||
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", duration: int = 0,
|
||||
performer: int = "", title: str = ""):
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
||||
self.thumb = thumb
|
||||
|
@ -43,11 +43,7 @@ class InputMediaDocument(InputMedia):
|
||||
Defaults to Markdown.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
media: str,
|
||||
thumb: str = None,
|
||||
caption: str = "",
|
||||
parse_mode: str = ""):
|
||||
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = ""):
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
||||
self.thumb = thumb
|
||||
|
@ -39,8 +39,5 @@ class InputMediaPhoto(InputMedia):
|
||||
Defaults to Markdown.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
media: str,
|
||||
caption: str = "",
|
||||
parse_mode: str = ""):
|
||||
def __init__(self, media: str, caption: str = "", parse_mode: str = ""):
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
@ -57,15 +57,8 @@ class InputMediaVideo(InputMedia):
|
||||
Pass True, if the uploaded video is suitable for streaming.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
media: str,
|
||||
thumb: str = None,
|
||||
caption: str = "",
|
||||
parse_mode: str = "",
|
||||
width: int = 0,
|
||||
height: int = 0,
|
||||
duration: int = 0,
|
||||
supports_streaming: bool = True):
|
||||
def __init__(self, media: str, thumb: str = None, caption: str = "", parse_mode: str = "", width: int = 0,
|
||||
height: int = 0, duration: int = 0, supports_streaming: bool = True):
|
||||
super().__init__(media, caption, parse_mode)
|
||||
|
||||
self.thumb = thumb
|
||||
|
Loading…
x
Reference in New Issue
Block a user