Skip to content

Commit

Permalink
fixed inline response timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
iliayatsenko committed Sep 8, 2024
1 parent 53d7411 commit d0172c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tgbot/tgbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (t *TgBot) handleCommand(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
}

func (t *TgBot) handleInlineQuery(update tgbotapi.Update, bot *tgbotapi.BotAPI) {
inlineResponseTimer := time.AfterFunc(5000*time.Millisecond, func() {
inlineResponseTimer := time.AfterFunc(500*time.Millisecond, func() {
var replyText string
translated, err := t.translator.Translate(update.InlineQuery.Query)
if err != nil {
Expand Down

0 comments on commit d0172c0

Please sign in to comment.