diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index bdc5e370..accc39c5 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -269,7 +269,7 @@ def pyrogram_api(): """, stories=""" Stories - delete_story + delete_stories edit_story export_story_link get_stories @@ -646,7 +646,7 @@ def pyrogram_api(): Story.edit_animation Story.edit_caption Story.edit_photo - Story.edit_privary + Story.edit_privacy Story.edit_video Story.export_link Story.reply_text diff --git a/compiler/docs/template/bound-methods.rst b/compiler/docs/template/bound-methods.rst index 1e16e32c..3f880f6f 100644 --- a/compiler/docs/template/bound-methods.rst +++ b/compiler/docs/template/bound-methods.rst @@ -36,6 +36,19 @@ Message {message_toctree} +Story +----- + +.. hlist:: + :columns: 3 + + {story_hlist} + +.. toctree:: + :hidden: + + {story_toctree} + Chat ---- diff --git a/compiler/docs/template/methods.rst b/compiler/docs/template/methods.rst index 73c97581..45d5e538 100644 --- a/compiler/docs/template/methods.rst +++ b/compiler/docs/template/methods.rst @@ -60,6 +60,19 @@ Messages {messages} +Stories +------- + +.. autosummary:: + :nosignatures: + + {stories} + +.. toctree:: + :hidden: + + {stories} + Chats ----- diff --git a/compiler/docs/template/types.rst b/compiler/docs/template/types.rst index e404ad4c..471c2ca6 100644 --- a/compiler/docs/template/types.rst +++ b/compiler/docs/template/types.rst @@ -47,6 +47,19 @@ Messages & Media {messages_media} +Stories +------- + +.. autosummary:: + :nosignatures: + + {stories} + +.. toctree:: + :hidden: + + {stories} + Bot keyboards ------------- diff --git a/docs/source/api/enums/StoriesPrivacy.rst b/docs/source/api/enums/StoriesPrivacy.rst new file mode 100644 index 00000000..cc3a1b83 --- /dev/null +++ b/docs/source/api/enums/StoriesPrivacy.rst @@ -0,0 +1,8 @@ +StoriesPrivacy +============== + +.. autoclass:: pyrogram.enums.StoriesPrivacy() + :members: + +.. raw:: html + :file: ./cleanup.html \ No newline at end of file diff --git a/docs/source/api/enums/index.rst b/docs/source/api/enums/index.rst index eb0d2389..43ae0905 100644 --- a/docs/source/api/enums/index.rst +++ b/docs/source/api/enums/index.rst @@ -27,6 +27,7 @@ to apply only a valid value among the expected ones. SentCodeType NextCodeType UserStatus + StoriesPrivacy .. toctree:: :hidden: @@ -44,4 +45,5 @@ to apply only a valid value among the expected ones. PollType SentCodeType NextCodeType - UserStatus \ No newline at end of file + UserStatus + StoriesPrivacy \ No newline at end of file diff --git a/pyrogram/enums/stories_privacy.py b/pyrogram/enums/stories_privacy.py index ef7eb10f..93e2e984 100644 --- a/pyrogram/enums/stories_privacy.py +++ b/pyrogram/enums/stories_privacy.py @@ -22,7 +22,7 @@ from .auto_name import AutoName class StoriesPrivacy(AutoName): - """Poll type enumeration used in :obj:`~pyrogram.types.Stories`.""" + """Poll type enumeration used in :obj:`~pyrogram.types.Story`.""" PUBLIC = auto() "Public stories" diff --git a/pyrogram/types/messages_and_media/stories_privacy.py b/pyrogram/types/messages_and_media/stories_privacy.py index 1bfcb6ae..512930b1 100644 --- a/pyrogram/types/messages_and_media/stories_privacy.py +++ b/pyrogram/types/messages_and_media/stories_privacy.py @@ -23,7 +23,7 @@ class StoriesPrivacy(Object): """A story privacy. Parameters: - type (:obj:`~pyrogram.enums.StoriesPrivary`): + type (:obj:`~pyrogram.enums.StoriesPrivacy`): Story privacy type. """