sfbr inline query fix

This commit is contained in:
Dmitry Anderson 2024-10-27 10:12:11 +01:00
parent abf50e6b63
commit e847cf5af8

View File

@ -12,7 +12,7 @@ export const handleSafebooruQuery = async (
getPosts: GetSafebooruPostsFunc
): Promise<void> => {
// 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)