Please, help me to solve my problem. What's wrong with my code?
@dp.inline_handler()
async def inline_handler(query : types.InlineQuery):
text = query.query or "echo"
links = searcher(text)
articles = [types.InlineQueryResultArticle(
id = hashlib.md5(f'{link["id"]}'.encode()),hexdigest(),
title = f'{link["title"]}',
url = f'https://www.youtube.com/watch?v={link["id"]}',
thumb_url = f'{link["thumbnails"][0]}',
input_message_content=types.InputTextMessageContent(
message_text=f'https://www.youtube.com/watch?v={link["id"]}')
) for link in links]
await query.answer(articles, cache_time=60, is_personal=True)
Terminal shows this: ) for links in link] ^ SyntaxError: positional argument follows keyword argument