версии
@dp.inline_handler()
async def inline_handler(query: types.InlineQuery):
print(query.query)
link = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
result_id: str = hashlib.md5(user_input.encode()).hexdigest()
print(result_id)
article = [types.InlineQueryResultArticle(id = result_id, title = "заголок ",
url = link,
input_message_content=types.InputTextMessageContent(message_text=link))]
await query.answer(article,is_personal=True)
что есть user_input?
https://github.com/MasterGroosha/my-id-bot/blob/aiogram3/bot/handlers/inline_mode.py
Обсуждают сегодня