mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-17 21:22:40 +00:00
Add InlineQueryResult super class
This commit is contained in:
parent
55cca00401
commit
06797d32f0
@ -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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user