Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
add shortcut to set alarm (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
PKuebler authored Aug 6, 2020
1 parent 42ecb7f commit 0f2a155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/interface/telegram/newalarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ func (t *TelegramService) NewAlarm(ctx telegramconversation.TContext) telegramco
log := ctx.LogFields(t.log)
log.Trace("NewAlarm()")

if ctx.CommandQuery() != "" {
ctx.SetMessage(ctx.CommandQuery())
return t.NewAlarmSelect(ctx)
}

return ctx.SendWithState("Welcher Zug soll überwacht werden?", "newalarmselect")
}

0 comments on commit 0f2a155

Please sign in to comment.