G
G
GreenRib2020-05-31 20:30:06
Python
GreenRib, 2020-05-31 20:30:06

Why is the description of the result not displayed in the inline mode of the telegram bot?

I write a bot in python, I make an inline mode. When in response to an inline request I pass the InlineQueryResultCachedPhoto type, the client shows photos, but does not display a description for them.
Here is the code:

def show_menu(query):

    result = types.InlineQueryResultCachedPhoto(
        id='1', title="Описание",
        description="Результат",
        photo_file_id="AgACAgIAAxkBAAIFtl7TvTF21lO78DnvUVqM-W-_3PFHAAI4rjEbJ-OhStFhGdkeIHLfKvXhkS4AAwEAAwIAA3kAA52VAgABGQQ"
        )

    bot.answer_inline_query(query.id, [result])


If you use another type, for example, not cached cart photos, but simply InlineQueryResultPhoto, then everything is fine, but it’s more convenient for me to use photos from telegram servers. Yes, and I want to find out if someone else has this or not.
I am attaching the conclusion.

5ed3e9161150a435186460.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question