sfbr inline query fix
This commit is contained in:
parent
abf50e6b63
commit
e847cf5af8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user