feat: show rating on inline query
this commit also updates all query result titles Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
28df00e34f
commit
8568d788db
1 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ async def answer_query(update: Update, query: str, data) -> None:
|
|||
results = [
|
||||
InlineQueryResultArticle(
|
||||
id=str(uuid4()),
|
||||
title=f"ID: {query}",
|
||||
title=f"#{query} {rating}",
|
||||
description=f"{characters} ({copyrights}) drawn by {artists}",
|
||||
input_message_content=InputTextMessageContent(
|
||||
" ".join(
|
||||
|
@ -87,7 +87,7 @@ async def answer_query(update: Update, query: str, data) -> None:
|
|||
results = [
|
||||
InlineQueryResultArticle(
|
||||
id=str(uuid4()),
|
||||
title=f"ID: {query}",
|
||||
title=f"#{query} {rating}",
|
||||
description=f"{characters} ({copyrights}) drawn by {artists}",
|
||||
thumbnail_url=data["preview_file_url"],
|
||||
input_message_content=InputTextMessageContent(
|
||||
|
@ -114,7 +114,7 @@ async def invalid_query(update: Update, query: str) -> None:
|
|||
results = [
|
||||
InlineQueryResultArticle(
|
||||
id=str(uuid4()),
|
||||
title=f"ID: {query}",
|
||||
title=f"#{query}",
|
||||
description="Error",
|
||||
input_message_content=InputTextMessageContent(
|
||||
" ".join([html_parser.code(f"#{query}"), "That record was not found."]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue