From 06797d32f093e8abc943a2dd62d879800b7d2251 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Nov 2018 13:09:27 +0100 Subject: [PATCH] Add InlineQueryResult super class --- pyrogram/client/types/bots/__init__.py | 1 + .../client/types/bots/inline_query_result.py | 25 +++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) 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):