diff --git a/pyrogram/types/messages_and_media/story.py b/pyrogram/types/messages_and_media/story.py index 8dae4ec0..e64ae91e 100644 --- a/pyrogram/types/messages_and_media/story.py +++ b/pyrogram/types/messages_and_media/story.py @@ -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" ) diff --git a/pyrogram/types/messages_and_media/web_page_preview.py b/pyrogram/types/messages_and_media/web_page_preview.py index c468d4ac..0eea0fe2 100644 --- a/pyrogram/types/messages_and_media/web_page_preview.py +++ b/pyrogram/types/messages_and_media/web_page_preview.py @@ -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*):