Skip to content

Commit

Permalink
change inline query results to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwscdv3 committed Nov 27, 2022
1 parent a583cf8 commit 83e0e85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export async function onInlineQuery(ctx: NarrowedContext<MyContext, Update.Inlin
const artworks = await ctx.pixiv.getRandomBookmarks({
tag: search == 'all' ? undefined : search,
isPrivate: visibility == 'private',
count: 5,
});
results = artworks.map((artwork): InlineQueryResult => ({
type: 'photo',
Expand Down

0 comments on commit 83e0e85

Please sign in to comment.