import hashlib
wel = ["Даров бро!"]
@dp.inline_handler()
async def inline_echo(inline_query: InlineQuery):
text = inline_query.query or 'echo'
input_content = InputTextMessageContent(wel)
result_id: str = hashlib.md5(text.encode()).hexdigest()
item = InlineQueryResultArticle(
id=result_id,
title='Даров!',
input_message_content=input_content,
)
await bot.answer_inline_query(inline_query.id, results=[item], cache_time=1)
Ошибка:
raise cls(description)
aiogram.utils.exceptions.BadRequest: Can't parse inline query result: field "message_text" must be of type string