Improve inline result documentation with more examples

This commit is contained in:
Lonami Exo
2020-10-15 10:42:40 +02:00
parent 9c5b9abb93
commit 312dac90a3
3 changed files with 78 additions and 4 deletions

View File

@@ -13,6 +13,10 @@ class InlineResult:
result (:tl:`BotInlineResult`):
The original :tl:`BotInlineResult` object.
"""
# tdlib types are the following (InlineQueriesManager::answer_inline_query @ 1a4a834):
# gif, article, audio, contact, file, geo, photo, sticker, venue, video, voice
#
# However, those documented in https://core.telegram.org/bots/api#inline-mode are different.
ARTICLE = 'article'
PHOTO = 'photo'
GIF = 'gif'