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