Skip to content

Commit c2333c0

Browse files
committed
Add inline query results to the documentation
1 parent 703ec16 commit c2333c0

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

compiler/docs/compiler.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,23 @@ def get_title_list(s: str) -> list:
452452
Inline Mode
453453
InlineQuery
454454
InlineQueryResult
455+
InlineQueryResultCachedAudio
456+
InlineQueryResultCachedDocument
457+
InlineQueryResultCachedAnimation
458+
InlineQueryResultCachedPhoto
459+
InlineQueryResultCachedSticker
460+
InlineQueryResultCachedVideo
461+
InlineQueryResultCachedVoice
455462
InlineQueryResultArticle
456-
InlineQueryResultPhoto
457-
InlineQueryResultAnimation
458463
InlineQueryResultAudio
464+
InlineQueryResultContact
465+
InlineQueryResultDocument
466+
InlineQueryResultAnimation
467+
InlineQueryResultLocation
468+
InlineQueryResultPhoto
469+
InlineQueryResultVenue
459470
InlineQueryResultVideo
471+
InlineQueryResultVoice
460472
ChosenInlineResult
461473
""",
462474
input_message_content="""

pyrogram/types/inline_mode/inline_query_result.py

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,27 @@
2222
from pyrogram import types
2323
from ..object import Object
2424

25-
"""- :obj:`~pyrogram.types.InlineQueryResultCachedAudio`
25+
26+
class InlineQueryResult(Object):
27+
"""One result of an inline query.
28+
29+
- :obj:`~pyrogram.types.InlineQueryResultCachedAudio`
2630
- :obj:`~pyrogram.types.InlineQueryResultCachedDocument`
27-
- :obj:`~pyrogram.types.InlineQueryResultCachedGif`
28-
- :obj:`~pyrogram.types.InlineQueryResultCachedMpeg4Gif`
31+
- :obj:`~pyrogram.types.InlineQueryResultCachedAnimation`
2932
- :obj:`~pyrogram.types.InlineQueryResultCachedPhoto`
3033
- :obj:`~pyrogram.types.InlineQueryResultCachedSticker`
3134
- :obj:`~pyrogram.types.InlineQueryResultCachedVideo`
3235
- :obj:`~pyrogram.types.InlineQueryResultCachedVoice`
36+
- :obj:`~pyrogram.types.InlineQueryResultArticle`
3337
- :obj:`~pyrogram.types.InlineQueryResultAudio`
3438
- :obj:`~pyrogram.types.InlineQueryResultContact`
35-
- :obj:`~pyrogram.types.InlineQueryResultGame`
3639
- :obj:`~pyrogram.types.InlineQueryResultDocument`
37-
- :obj:`~pyrogram.types.InlineQueryResultGif`
40+
- :obj:`~pyrogram.types.InlineQueryResultAnimation`
3841
- :obj:`~pyrogram.types.InlineQueryResultLocation`
39-
- :obj:`~pyrogram.types.InlineQueryResultMpeg4Gif`
4042
- :obj:`~pyrogram.types.InlineQueryResultPhoto`
4143
- :obj:`~pyrogram.types.InlineQueryResultVenue`
4244
- :obj:`~pyrogram.types.InlineQueryResultVideo`
43-
- :obj:`~pyrogram.types.InlineQueryResultVoice`"""
44-
45-
46-
class InlineQueryResult(Object):
47-
"""One result of an inline query.
48-
49-
Pyrogram currently supports results of the following types:
50-
51-
- :obj:`~pyrogram.types.InlineQueryResultArticle`
52-
- :obj:`~pyrogram.types.InlineQueryResultAudio`
53-
- :obj:`~pyrogram.types.InlineQueryResultAnimation`
54-
- :obj:`~pyrogram.types.InlineQueryResultContact`
55-
- :obj:`~pyrogram.types.InlineQueryResultDocument`
56-
- :obj:`~pyrogram.types.InlineQueryResultPhoto`
57-
- :obj:`~pyrogram.types.InlineQueryResultVideo`
45+
- :obj:`~pyrogram.types.InlineQueryResultVoice`
5846
"""
5947

6048
def __init__(

0 commit comments

Comments
 (0)