mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-24 07:51:44 +00:00
Add inline query results to the documentation
This commit is contained in:
parent
703ec1676c
commit
c2333c0575
@ -452,11 +452,23 @@ def pyrogram_api():
|
|||||||
Inline Mode
|
Inline Mode
|
||||||
InlineQuery
|
InlineQuery
|
||||||
InlineQueryResult
|
InlineQueryResult
|
||||||
|
InlineQueryResultCachedAudio
|
||||||
|
InlineQueryResultCachedDocument
|
||||||
|
InlineQueryResultCachedAnimation
|
||||||
|
InlineQueryResultCachedPhoto
|
||||||
|
InlineQueryResultCachedSticker
|
||||||
|
InlineQueryResultCachedVideo
|
||||||
|
InlineQueryResultCachedVoice
|
||||||
InlineQueryResultArticle
|
InlineQueryResultArticle
|
||||||
InlineQueryResultPhoto
|
|
||||||
InlineQueryResultAnimation
|
|
||||||
InlineQueryResultAudio
|
InlineQueryResultAudio
|
||||||
|
InlineQueryResultContact
|
||||||
|
InlineQueryResultDocument
|
||||||
|
InlineQueryResultAnimation
|
||||||
|
InlineQueryResultLocation
|
||||||
|
InlineQueryResultPhoto
|
||||||
|
InlineQueryResultVenue
|
||||||
InlineQueryResultVideo
|
InlineQueryResultVideo
|
||||||
|
InlineQueryResultVoice
|
||||||
ChosenInlineResult
|
ChosenInlineResult
|
||||||
""",
|
""",
|
||||||
input_message_content="""
|
input_message_content="""
|
||||||
|
@ -22,39 +22,27 @@ import pyrogram
|
|||||||
from pyrogram import types
|
from pyrogram import types
|
||||||
from ..object import Object
|
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):
|
class InlineQueryResult(Object):
|
||||||
"""One result of an inline query.
|
"""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.InlineQueryResultArticle`
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultAudio`
|
- :obj:`~pyrogram.types.InlineQueryResultAudio`
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultAnimation`
|
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultContact`
|
- :obj:`~pyrogram.types.InlineQueryResultContact`
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultDocument`
|
- :obj:`~pyrogram.types.InlineQueryResultDocument`
|
||||||
|
- :obj:`~pyrogram.types.InlineQueryResultAnimation`
|
||||||
|
- :obj:`~pyrogram.types.InlineQueryResultLocation`
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultPhoto`
|
- :obj:`~pyrogram.types.InlineQueryResultPhoto`
|
||||||
|
- :obj:`~pyrogram.types.InlineQueryResultVenue`
|
||||||
- :obj:`~pyrogram.types.InlineQueryResultVideo`
|
- :obj:`~pyrogram.types.InlineQueryResultVideo`
|
||||||
|
- :obj:`~pyrogram.types.InlineQueryResultVoice`
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
Loading…
Reference in New Issue
Block a user