diff --git a/pyrogram/client/types/bots/__init__.py b/pyrogram/client/types/bots/__init__.py index 6f350a21..8e179ca0 100644 --- a/pyrogram/client/types/bots/__init__.py +++ b/pyrogram/client/types/bots/__init__.py @@ -21,6 +21,7 @@ from .force_reply import ForceReply from .inline_keyboard_button import InlineKeyboardButton from .inline_keyboard_markup import InlineKeyboardMarkup from .inline_query import InlineQuery +from .inline_query_result import InlineQueryResult from .inline_query_result_article import InlineQueryResultArticle from .inline_query_result_audio import InlineQueryResultAudio from .inline_query_result_cached_audio import InlineQueryResultCachedAudio diff --git a/pyrogram/client/types/bots/inline_query_result.py b/pyrogram/client/types/bots/inline_query_result.py index 7225651e..7c4c0c30 100644 --- a/pyrogram/client/types/bots/inline_query_result.py +++ b/pyrogram/client/types/bots/inline_query_result.py @@ -18,8 +18,29 @@ class InlineQueryResult: - """This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: - TODO: List types + """This object represents one result of an inline query. + Pyrogram currently supports results of the following 20 types: + + - :obj:`InlineQueryResultCachedAudio` + - :obj:`InlineQueryResultCachedDocument` + - :obj:`InlineQueryResultCachedGif` + - :obj:`InlineQueryResultCachedMpeg4Gif` + - :obj:`InlineQueryResultCachedPhoto` + - :obj:`InlineQueryResultCachedSticker` + - :obj:`InlineQueryResultCachedVideo` + - :obj:`InlineQueryResultCachedVoice` + - :obj:`InlineQueryResultArticle` + - :obj:`InlineQueryResultAudio` + - :obj:`InlineQueryResultContact` + - :obj:`InlineQueryResultGame` + - :obj:`InlineQueryResultDocument` + - :obj:`InlineQueryResultGif` + - :obj:`InlineQueryResultLocation` + - :obj:`InlineQueryResultMpeg4Gif` + - :obj:`InlineQueryResultPhoto` + - :obj:`InlineQueryResultVenue` + - :obj:`InlineQueryResultVideo` + - :obj:`InlineQueryResultVoice` """ def __init__(self, type: str, id: str):