Skip to content

Commit

Permalink
increase inline query fetch results to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Nov 10, 2023
1 parent 7bcfffb commit 22efe32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/searchInlineQueryHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function inlineQueryResultHandler(
const waitingMsgId = await bot.telegram
.sendMessage(chatId, "Fetching attachments.. Please wait..")
.then((msg) => msg.message_id);
const announcements = await fetchAnnouncements(0, 10, query);
const announcements = await fetchAnnouncements(0, 20, query);
const chosenAnnouncement = announcements.find(
(announcement) => announcement.id === Number(id),
);
Expand Down

0 comments on commit 22efe32

Please sign in to comment.