Answer the question
In order to leave comments, you need to log in
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])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question