mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21: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
|
||||
from pyrogram.api import types
|
||||
from .photo import Photo
|
||||
from ..object import Object
|
||||
|
||||
|
||||
class WebPage(Object):
|
||||
#TODO: hash, cached_page
|
||||
# TODO: hash, cached_page
|
||||
"""A webpage preview
|
||||
|
||||
Parameters:
|
||||
|
|
@ -81,7 +80,7 @@ class WebPage(Object):
|
|||
author (``str``, *optional*):
|
||||
Author of the webpage, eg the Twitter user.
|
||||
"""
|
||||
|
||||
|
||||
__slots__ = [
|
||||
"id", "url", "display_url", "type", "site_name", "title", "description",
|
||||
"audio", "document", "photo", "animation", "video",
|
||||
|
|
@ -110,9 +109,9 @@ class WebPage(Object):
|
|||
embed_height: int = None,
|
||||
duration: int = None,
|
||||
author: str = None
|
||||
) -> "pyrogram.WebPage" :
|
||||
) -> "pyrogram.WebPage":
|
||||
super().__init__(client)
|
||||
|
||||
|
||||
self.id = id
|
||||
self.url = url
|
||||
self.display_url = display_url
|
||||
|
|
@ -131,7 +130,7 @@ class WebPage(Object):
|
|||
self.embed_height = embed_height
|
||||
self.duration = duration
|
||||
self.author = author
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _parse(client, webpage: types.WebPage) -> "WebPage":
|
||||
audio = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue