2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Reformat __init__ parameters

This commit is contained in:
Dan 2018-12-17 12:45:35 +01:00
parent e9a362923f
commit 92118e3608
5 changed files with 8 additions and 34 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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