Skip to content

Commit

Permalink
fix: Ignore empty inline request
Browse files Browse the repository at this point in the history
  • Loading branch information
otomir23 committed Jul 9, 2024
1 parent a89723d commit d7c08a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/telegram/bot/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ downloadDp.onNewMessage(filters.chat("private"), async (msg) => {
downloadDp.onInlineQuery(async (ctx) => {
const { t, e } = await evaluatorsFor(ctx.user)

if (!ctx.query.trim()) {
await ctx.answer([])
return
}

const req = await createRequest(ctx.query, ctx.user.id)
if (!req.success) {
await ctx.answer([
Expand Down

0 comments on commit d7c08a6

Please sign in to comment.