Skip to content

Commit

Permalink
Fix /chat cmd not working because empty names
Browse files Browse the repository at this point in the history
  • Loading branch information
ComRSMaster authored Aug 5, 2024
1 parent 21d088d commit 6291cb5
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], InputTextMessageContent(f"/chat {u[0]}"),
u[0], u[1] else ' ', 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 6291cb5

Please sign in to comment.