mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
flake8 errors
This commit is contained in:
parent
17a2589891
commit
9687ef2820
1 changed files with 5 additions and 6 deletions
|
|
@ -18,12 +18,11 @@
|
||||||
|
|
||||||
import pyrogram
|
import pyrogram
|
||||||
from pyrogram.api import types
|
from pyrogram.api import types
|
||||||
from .photo import Photo
|
|
||||||
from ..object import Object
|
from ..object import Object
|
||||||
|
|
||||||
|
|
||||||
class WebPage(Object):
|
class WebPage(Object):
|
||||||
#TODO: hash, cached_page
|
# TODO: hash, cached_page
|
||||||
"""A webpage preview
|
"""A webpage preview
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
@ -81,7 +80,7 @@ class WebPage(Object):
|
||||||
author (``str``, *optional*):
|
author (``str``, *optional*):
|
||||||
Author of the webpage, eg the Twitter user.
|
Author of the webpage, eg the Twitter user.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__slots__ = [
|
__slots__ = [
|
||||||
"id", "url", "display_url", "type", "site_name", "title", "description",
|
"id", "url", "display_url", "type", "site_name", "title", "description",
|
||||||
"audio", "document", "photo", "animation", "video",
|
"audio", "document", "photo", "animation", "video",
|
||||||
|
|
@ -110,9 +109,9 @@ class WebPage(Object):
|
||||||
embed_height: int = None,
|
embed_height: int = None,
|
||||||
duration: int = None,
|
duration: int = None,
|
||||||
author: str = None
|
author: str = None
|
||||||
) -> "pyrogram.WebPage" :
|
) -> "pyrogram.WebPage":
|
||||||
super().__init__(client)
|
super().__init__(client)
|
||||||
|
|
||||||
self.id = id
|
self.id = id
|
||||||
self.url = url
|
self.url = url
|
||||||
self.display_url = display_url
|
self.display_url = display_url
|
||||||
|
|
@ -131,7 +130,7 @@ class WebPage(Object):
|
||||||
self.embed_height = embed_height
|
self.embed_height = embed_height
|
||||||
self.duration = duration
|
self.duration = duration
|
||||||
self.author = author
|
self.author = author
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _parse(client, webpage: types.WebPage) -> "WebPage":
|
def _parse(client, webpage: types.WebPage) -> "WebPage":
|
||||||
audio = None
|
audio = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue