From 7c4cf6bc99d55ca8c00e61f19408a35230a0f820 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 20 Apr 2017 12:04:24 +0200 Subject: [PATCH] stt: Raise cap to 1min --- mods/stt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/stt.go b/mods/stt.go index 06a1c8f..15ceced 100644 --- a/mods/stt.go +++ b/mods/stt.go @@ -32,8 +32,8 @@ func stt(broker *tg.Broker, update tg.APIMessage) { update.Voice = update.ReplyTo.Voice } - if update.Voice.Duration > 20 { - broker.SendTextMessage(update.Chat, "L'audio dura un bel po' (>20s), al momento non posso farci nulla :S", &update.MessageID) + if update.Voice.Duration > 60 { + broker.SendTextMessage(update.Chat, "L'audio dura un bel po' (> 1 minuto), al momento non posso farci nulla :S", &update.MessageID) return }