stt: Raise cap to 1min

This commit is contained in:
Hamcha 2017-04-20 12:04:24 +02:00
parent 7e1b882ccb
commit 7c4cf6bc99
1 changed files with 2 additions and 2 deletions

View File

@ -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
}