Skip to content

Commit

Permalink
fix: telegraf handler timeout 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Mar 20, 2024
1 parent 2bfcf6f commit 4941b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/telegram/telegram-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ContextMessageUpdate } from './context-message-update'
import { auth } from './middleware'
import { params } from './middleware/params'

const telegramBot: Telegraf<ContextMessageUpdate> = new Telegraf(config.bot.telegramToken)
const telegramBot: Telegraf<ContextMessageUpdate> = new Telegraf(config.bot.telegramToken, { handlerTimeout: 360_000 })

telegramBot.use(auth)
telegramBot.use(params)
Expand Down

0 comments on commit 4941b12

Please sign in to comment.