From 8c51a192af4656a53d05660ef4699c65bd41f916 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 15 Jun 2024 16:40:36 +0700 Subject: [PATCH] pyrofork: fix docs Signed-off-by: wulan17 --- compiler/docs/template/types.rst | 13 +++++++++++++ pyrogram/types/bots_and_keyboards/bot_allowed.py | 2 +- pyrogram/types/bots_and_keyboards/bot_app.py | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/compiler/docs/template/types.rst b/compiler/docs/template/types.rst index 0ae41f4b..c74a261d 100644 --- a/compiler/docs/template/types.rst +++ b/compiler/docs/template/types.rst @@ -73,6 +73,19 @@ Pyromod {pyromod} +Bot +--- + +.. autosummary:: + :nosignatures: + + {bot} + +.. toctree:: + :hidden: + + {bot} + Bot keyboards ------------- diff --git a/pyrogram/types/bots_and_keyboards/bot_allowed.py b/pyrogram/types/bots_and_keyboards/bot_allowed.py index d41d687d..5fadaace 100644 --- a/pyrogram/types/bots_and_keyboards/bot_allowed.py +++ b/pyrogram/types/bots_and_keyboards/bot_allowed.py @@ -38,7 +38,7 @@ class BotAllowed(Object): domain (``str``, *optional*): The domain of the bot. - app (:obj:`types.BotApp`, *optional*): + app (:obj:`~pyrogram.types.BotApp`, *optional*): The app of the bot. """ diff --git a/pyrogram/types/bots_and_keyboards/bot_app.py b/pyrogram/types/bots_and_keyboards/bot_app.py index 6e41ee1f..65927ce4 100644 --- a/pyrogram/types/bots_and_keyboards/bot_app.py +++ b/pyrogram/types/bots_and_keyboards/bot_app.py @@ -44,7 +44,7 @@ class BotApp(Object): photo (``types.Photo``): The photo of the app. - document (``types.Document``, *optional*): + document (:obj:`~pyrogram.types.Document`, *optional*): The document of the app. """