Skip to content

Commit

Permalink
Update chat_cmd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ComRSMaster authored Aug 5, 2024
1 parent 6291cb5 commit c0d453e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/chat_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def inline_query_photo(inline_query: InlineQuery):
"WHERE `only_chess` = 0 AND (`name` LIKE %s OR `desc` LIKE %s)"
"ORDER BY `name` LIMIT %s, %s", (query, query, offset, 50)):
results.append(InlineQueryResultArticle(
u[0], u[1] else ' ', InputTextMessageContent(f"/chat {u[0]}"),
u[0], u[1] or ' ', InputTextMessageContent(f"/chat {u[0]}"),
description=f"{u[2] or ''}\nНажмите, чтобы написать {'этому человеку' if u[4] else 'в эту группу'}",
thumbnail_url=None if u[3] is None else f'{web_url}p/{u[3]}.jpg'))

Expand Down

0 comments on commit c0d453e

Please sign in to comment.