From e847cf5af89009027511c57a864171d492675421 Mon Sep 17 00:00:00 2001 From: Dmitry Anderson <4nd3r5z0n@gmail.com> Date: Sun, 27 Oct 2024 10:12:11 +0100 Subject: [PATCH] sfbr inline query fix --- bot/normal_mode/safebooru.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/normal_mode/safebooru.ts b/bot/normal_mode/safebooru.ts index c8e3765..e2aef6a 100644 --- a/bot/normal_mode/safebooru.ts +++ b/bot/normal_mode/safebooru.ts @@ -12,7 +12,7 @@ export const handleSafebooruQuery = async ( getPosts: GetSafebooruPostsFunc ): Promise => { // Remove the safebooru refix - const query = ctx.inlineQuery.query.slice("safebooru".length) + const query = ctx.inlineQuery.query.slice("sfbr".length) const tags = query.split(" ") // So we make a request, get some posts in a structure const posts = await getPosts(DEFAULT_POSTS_LIMIT, DEFAULT_START_PAGE_ID, tags)