Skip to content

Commit

Permalink
Updated inline search message
Browse files Browse the repository at this point in the history
Added submissions' id to shown text for submissions' inline search
  • Loading branch information
IlyaKhalafi committed Jan 26, 2023
1 parent 84a339f commit 95bcb6f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions uniland/plugins/search/inlinesearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def answer(client, inline_query):
title=record.search_text,
id=record.id,
caption=document.user_display() + '\n' + "آیدی ربات: @UniLandBot",
description=f'مورد علاقه {record.likes} نفر',
description=f"محتوای {record.id}" + f' مورد علاقه {record.likes} نفر',
reply_markup=InlineKeyboardMarkup([[
InlineKeyboardButton(
text=f'👍 {record.likes}',
Expand All @@ -56,7 +56,8 @@ async def answer(client, inline_query):
title=record.search_text,
id=record.id,
caption=profile.user_display() + '\n' + "آیدی ربات: @UniLandBot",
description=f'مورد علاقه {record.likes} نفر',
description=f"محتوای {record.id}" +
f' مورد علاقه {record.likes} نفر',
reply_markup=InlineKeyboardMarkup([[
InlineKeyboardButton(
text=f'👍 {record.likes}',
Expand All @@ -70,7 +71,8 @@ async def answer(client, inline_query):
input_message_content=InputTextMessageContent(
profile.user_display() + '\n' + "آیدی ربات: @UniLandBot"),
id=record.id,
description=f'مورد علاقه {record.likes} نفر',
description=f"محتوای {record.id}" +
f' مورد علاقه {record.likes} نفر',
reply_markup=InlineKeyboardMarkup([[
InlineKeyboardButton(
text=f'👍 {record.likes}',
Expand All @@ -87,7 +89,8 @@ async def answer(client, inline_query):
input_message_content=InputTextMessageContent(
media.user_display() + '\n' + "آیدی ربات: @UniLandBot"),
id=record.id,
description=f'مورد علاقه {record.likes} نفر',
description=f"محتوای {record.id}" +
f' مورد علاقه {record.likes} نفر',
reply_markup=InlineKeyboardMarkup([[
InlineKeyboardButton(
text=f'👍 {media.likes}',
Expand Down

0 comments on commit 95bcb6f

Please sign in to comment.