Add InlineQueryResult super class

This commit is contained in:
Dan 2018-11-09 13:09:27 +01:00
parent 55cca00401
commit 06797d32f0
2 changed files with 24 additions and 2 deletions

View File

@ -21,6 +21,7 @@ from .force_reply import ForceReply
from .inline_keyboard_button import InlineKeyboardButton from .inline_keyboard_button import InlineKeyboardButton
from .inline_keyboard_markup import InlineKeyboardMarkup from .inline_keyboard_markup import InlineKeyboardMarkup
from .inline_query import InlineQuery from .inline_query import InlineQuery
from .inline_query_result import InlineQueryResult
from .inline_query_result_article import InlineQueryResultArticle from .inline_query_result_article import InlineQueryResultArticle
from .inline_query_result_audio import InlineQueryResultAudio from .inline_query_result_audio import InlineQueryResultAudio
from .inline_query_result_cached_audio import InlineQueryResultCachedAudio from .inline_query_result_cached_audio import InlineQueryResultCachedAudio

View File

@ -18,8 +18,29 @@
class InlineQueryResult: class InlineQueryResult:
"""This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: """This object represents one result of an inline query.
TODO: List types 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): def __init__(self, type: str, id: str):