Skip to content

Commit

Permalink
Pyrofork: fix docs
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Dec 13, 2023
1 parent bc1cf6b commit f02600a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyrogram/types/messages_and_media/story.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,7 @@ async def edit(
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*):
Expand Down Expand Up @@ -1535,7 +1534,8 @@ async def edit_caption(
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"
)
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/types/messages_and_media/web_page_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*):
Expand Down

0 comments on commit f02600a

Please sign in to comment.