mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Pyrofork: fix docs
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
7a285ba958
commit
5c49a62fd3
8 changed files with 54 additions and 5 deletions
|
|
@ -269,7 +269,7 @@ def pyrogram_api():
|
||||||
""",
|
""",
|
||||||
stories="""
|
stories="""
|
||||||
Stories
|
Stories
|
||||||
delete_story
|
delete_stories
|
||||||
edit_story
|
edit_story
|
||||||
export_story_link
|
export_story_link
|
||||||
get_stories
|
get_stories
|
||||||
|
|
@ -646,7 +646,7 @@ def pyrogram_api():
|
||||||
Story.edit_animation
|
Story.edit_animation
|
||||||
Story.edit_caption
|
Story.edit_caption
|
||||||
Story.edit_photo
|
Story.edit_photo
|
||||||
Story.edit_privary
|
Story.edit_privacy
|
||||||
Story.edit_video
|
Story.edit_video
|
||||||
Story.export_link
|
Story.export_link
|
||||||
Story.reply_text
|
Story.reply_text
|
||||||
|
|
|
||||||
13
compiler/docs/template/bound-methods.rst
vendored
13
compiler/docs/template/bound-methods.rst
vendored
|
|
@ -36,6 +36,19 @@ Message
|
||||||
|
|
||||||
{message_toctree}
|
{message_toctree}
|
||||||
|
|
||||||
|
Story
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. hlist::
|
||||||
|
:columns: 3
|
||||||
|
|
||||||
|
{story_hlist}
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
{story_toctree}
|
||||||
|
|
||||||
Chat
|
Chat
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
|
||||||
13
compiler/docs/template/methods.rst
vendored
13
compiler/docs/template/methods.rst
vendored
|
|
@ -60,6 +60,19 @@ Messages
|
||||||
|
|
||||||
{messages}
|
{messages}
|
||||||
|
|
||||||
|
Stories
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. autosummary::
|
||||||
|
:nosignatures:
|
||||||
|
|
||||||
|
{stories}
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
{stories}
|
||||||
|
|
||||||
Chats
|
Chats
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
|
|
||||||
13
compiler/docs/template/types.rst
vendored
13
compiler/docs/template/types.rst
vendored
|
|
@ -47,6 +47,19 @@ Messages & Media
|
||||||
|
|
||||||
{messages_media}
|
{messages_media}
|
||||||
|
|
||||||
|
Stories
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. autosummary::
|
||||||
|
:nosignatures:
|
||||||
|
|
||||||
|
{stories}
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
{stories}
|
||||||
|
|
||||||
Bot keyboards
|
Bot keyboards
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
||||||
8
docs/source/api/enums/StoriesPrivacy.rst
Normal file
8
docs/source/api/enums/StoriesPrivacy.rst
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
StoriesPrivacy
|
||||||
|
==============
|
||||||
|
|
||||||
|
.. autoclass:: pyrogram.enums.StoriesPrivacy()
|
||||||
|
:members:
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
:file: ./cleanup.html
|
||||||
|
|
@ -27,6 +27,7 @@ to apply only a valid value among the expected ones.
|
||||||
SentCodeType
|
SentCodeType
|
||||||
NextCodeType
|
NextCodeType
|
||||||
UserStatus
|
UserStatus
|
||||||
|
StoriesPrivacy
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:hidden:
|
:hidden:
|
||||||
|
|
@ -45,3 +46,4 @@ to apply only a valid value among the expected ones.
|
||||||
SentCodeType
|
SentCodeType
|
||||||
NextCodeType
|
NextCodeType
|
||||||
UserStatus
|
UserStatus
|
||||||
|
StoriesPrivacy
|
||||||
|
|
@ -22,7 +22,7 @@ from .auto_name import AutoName
|
||||||
|
|
||||||
|
|
||||||
class StoriesPrivacy(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 = auto()
|
||||||
"Public stories"
|
"Public stories"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ class StoriesPrivacy(Object):
|
||||||
"""A story privacy.
|
"""A story privacy.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
type (:obj:`~pyrogram.enums.StoriesPrivary`):
|
type (:obj:`~pyrogram.enums.StoriesPrivacy`):
|
||||||
Story privacy type.
|
Story privacy type.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue