Pyrofork: fix docs

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-12-13 10:18:49 +07:00
parent 7a7225b08f
commit 16bc4a4178
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 5 additions and 4 deletions

View file

@ -1479,8 +1479,7 @@ class Story(Object, Update):
New story video.
Pass a file_id as string to send a video that exists on the Telegram servers,
pass an HTTP URL as a string for Telegram to get a video from the Internet,
pass a file path as string to upload a
channel=self.sender_chat.id if self.sender_chat else None,new video that exists on your local machine, or
pass a file path as string to upload a new video that exists on your local machine, or
pass a binary file-like object with its attribute ".name" set for in-memory uploads.
privacy (:obj:`~pyrogram.enums.StoriesPrivacyRules`, *optional*):
@ -1535,7 +1534,9 @@ class Story(Object, Update):
Use as a shortcut for:
.. code-block:: python
channel=self.sender_chat.id if self.sender_chat else None,
await c.edit_story(
channel=chat_id,
caption="hello"
)

View file

@ -27,7 +27,7 @@ class WebPagePreview(Object):
"""A web page preview.
Parameters:
webpage (:obj:`~pyrogram.types.WebPageEmpty` | :obj:`~pyrogram.types.WebPage):
webpage (:obj:`~pyrogram.types.WebPageEmpty` | :obj:`~pyrogram.types.WebPage`):
Web Page Information.
force_large_media (``bool``, *optional*):