Pyrofork: fix docs

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-08-17 22:37:05 +07:00
parent 7a285ba958
commit 5c49a62fd3
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
8 changed files with 54 additions and 5 deletions

View file

@ -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

View file

@ -36,6 +36,19 @@ Message
{message_toctree}
Story
-----
.. hlist::
:columns: 3
{story_hlist}
.. toctree::
:hidden:
{story_toctree}
Chat
----

View file

@ -60,6 +60,19 @@ Messages
{messages}
Stories
-------
.. autosummary::
:nosignatures:
{stories}
.. toctree::
:hidden:
{stories}
Chats
-----

View file

@ -47,6 +47,19 @@ Messages & Media
{messages_media}
Stories
-------
.. autosummary::
:nosignatures:
{stories}
.. toctree::
:hidden:
{stories}
Bot keyboards
-------------

View file

@ -0,0 +1,8 @@
StoriesPrivacy
==============
.. autoclass:: pyrogram.enums.StoriesPrivacy()
:members:
.. raw:: html
:file: ./cleanup.html

View file

@ -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
UserStatus
StoriesPrivacy

View file

@ -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"

View file

@ -23,7 +23,7 @@ class StoriesPrivacy(Object):
"""A story privacy.
Parameters:
type (:obj:`~pyrogram.enums.StoriesPrivary`):
type (:obj:`~pyrogram.enums.StoriesPrivacy`):
Story privacy type.
"""