From c2333c05758a6338c255597478030ddf50bd1795 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 24 Apr 2022 11:56:07 +0200 Subject: [PATCH] Add inline query results to the documentation --- compiler/docs/compiler.py | 16 +++++++-- .../types/inline_mode/inline_query_result.py | 34 ++++++------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index a03d2ee3..6c2276b7 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -452,11 +452,23 @@ def pyrogram_api(): Inline Mode InlineQuery InlineQueryResult + InlineQueryResultCachedAudio + InlineQueryResultCachedDocument + InlineQueryResultCachedAnimation + InlineQueryResultCachedPhoto + InlineQueryResultCachedSticker + InlineQueryResultCachedVideo + InlineQueryResultCachedVoice InlineQueryResultArticle - InlineQueryResultPhoto - InlineQueryResultAnimation InlineQueryResultAudio + InlineQueryResultContact + InlineQueryResultDocument + InlineQueryResultAnimation + InlineQueryResultLocation + InlineQueryResultPhoto + InlineQueryResultVenue InlineQueryResultVideo + InlineQueryResultVoice ChosenInlineResult """, input_message_content=""" diff --git a/pyrogram/types/inline_mode/inline_query_result.py b/pyrogram/types/inline_mode/inline_query_result.py index 4ea2f7be..8548e023 100644 --- a/pyrogram/types/inline_mode/inline_query_result.py +++ b/pyrogram/types/inline_mode/inline_query_result.py @@ -22,39 +22,27 @@ import pyrogram from pyrogram import types from ..object import Object -"""- :obj:`~pyrogram.types.InlineQueryResultCachedAudio` - - :obj:`~pyrogram.types.InlineQueryResultCachedDocument` - - :obj:`~pyrogram.types.InlineQueryResultCachedGif` - - :obj:`~pyrogram.types.InlineQueryResultCachedMpeg4Gif` - - :obj:`~pyrogram.types.InlineQueryResultCachedPhoto` - - :obj:`~pyrogram.types.InlineQueryResultCachedSticker` - - :obj:`~pyrogram.types.InlineQueryResultCachedVideo` - - :obj:`~pyrogram.types.InlineQueryResultCachedVoice` - - :obj:`~pyrogram.types.InlineQueryResultAudio` - - :obj:`~pyrogram.types.InlineQueryResultContact` - - :obj:`~pyrogram.types.InlineQueryResultGame` - - :obj:`~pyrogram.types.InlineQueryResultDocument` - - :obj:`~pyrogram.types.InlineQueryResultGif` - - :obj:`~pyrogram.types.InlineQueryResultLocation` - - :obj:`~pyrogram.types.InlineQueryResultMpeg4Gif` - - :obj:`~pyrogram.types.InlineQueryResultPhoto` - - :obj:`~pyrogram.types.InlineQueryResultVenue` - - :obj:`~pyrogram.types.InlineQueryResultVideo` - - :obj:`~pyrogram.types.InlineQueryResultVoice`""" - class InlineQueryResult(Object): """One result of an inline query. - Pyrogram currently supports results of the following types: - + - :obj:`~pyrogram.types.InlineQueryResultCachedAudio` + - :obj:`~pyrogram.types.InlineQueryResultCachedDocument` + - :obj:`~pyrogram.types.InlineQueryResultCachedAnimation` + - :obj:`~pyrogram.types.InlineQueryResultCachedPhoto` + - :obj:`~pyrogram.types.InlineQueryResultCachedSticker` + - :obj:`~pyrogram.types.InlineQueryResultCachedVideo` + - :obj:`~pyrogram.types.InlineQueryResultCachedVoice` - :obj:`~pyrogram.types.InlineQueryResultArticle` - :obj:`~pyrogram.types.InlineQueryResultAudio` - - :obj:`~pyrogram.types.InlineQueryResultAnimation` - :obj:`~pyrogram.types.InlineQueryResultContact` - :obj:`~pyrogram.types.InlineQueryResultDocument` + - :obj:`~pyrogram.types.InlineQueryResultAnimation` + - :obj:`~pyrogram.types.InlineQueryResultLocation` - :obj:`~pyrogram.types.InlineQueryResultPhoto` + - :obj:`~pyrogram.types.InlineQueryResultVenue` - :obj:`~pyrogram.types.InlineQueryResultVideo` + - :obj:`~pyrogram.types.InlineQueryResultVoice` """ def __init__(