From b3deade428b30ea492e311cf54a75aff0a326c29 Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Mon, 29 Jul 2024 11:38:48 +0300 Subject: [PATCH] Fix story_ids description in get_stories --- compiler/docs/compiler.py | 1 + compiler/docs/template/bound-methods.rst | 2 +- compiler/docs/template/methods.rst | 43 ++++++++++++++++++++++-- pyrogram/methods/stories/get_stories.py | 2 +- 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index 1209f40c..7593e54c 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -333,6 +333,7 @@ def pyrogram_api(): Bots get_inline_bot_results send_inline_bot_result + send_invoice answer_callback_query answer_inline_query request_callback_answer diff --git a/compiler/docs/template/bound-methods.rst b/compiler/docs/template/bound-methods.rst index 163753dd..ee6bd2c3 100644 --- a/compiler/docs/template/bound-methods.rst +++ b/compiler/docs/template/bound-methods.rst @@ -89,7 +89,7 @@ InlineQuery {inline_query_toctree} PreCheckoutQuery ------------ +---------------- .. hlist:: :columns: 2 diff --git a/compiler/docs/template/methods.rst b/compiler/docs/template/methods.rst index 839a9210..4fd34e1e 100644 --- a/compiler/docs/template/methods.rst +++ b/compiler/docs/template/methods.rst @@ -152,7 +152,7 @@ Authorization {authorization} Stories -------------- +------- .. autosummary:: :nosignatures: @@ -165,7 +165,7 @@ Stories {stories} Premium -------------- +------- .. autosummary:: :nosignatures: @@ -177,6 +177,45 @@ Premium {premium} +Phone +----- + +.. autosummary:: + :nosignatures: + + {phone} + +.. toctree:: + :hidden: + + {phone} + +Business +-------- + +.. autosummary:: + :nosignatures: + + {business} + +.. toctree:: + :hidden: + + {business} + +Payments +-------- + +.. autosummary:: + :nosignatures: + + {payments} + +.. toctree:: + :hidden: + + {payments} + Advanced -------- diff --git a/pyrogram/methods/stories/get_stories.py b/pyrogram/methods/stories/get_stories.py index 40ae2922..1e8e6e4a 100644 --- a/pyrogram/methods/stories/get_stories.py +++ b/pyrogram/methods/stories/get_stories.py @@ -39,7 +39,7 @@ class GetStories: For your personal story you can simply use "me" or "self". For a contact that exists in your Telegram address book you can use his phone number (str). - story_ids (``int`` | Iterable of ``int``, *optional*): + story_ids (``int`` | Iterable of ``int``): Pass a single story identifier or an iterable of story ids (as integers) to get the content of the story themselves.