From 2ecedf047a6d0edff39824c63b9470a55bf503a5 Mon Sep 17 00:00:00 2001 From: rwesolowski Date: Fri, 12 Oct 2018 14:12:31 +0200 Subject: [PATCH] process only command messages --- cmd/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 8a217ef..8cc4760 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -86,7 +86,7 @@ func run() error { for u := range updates { log.Debugf("Got message: %v", u) - if u.Message == nil { + if u.Message == nil || !u.Message.IsCommand() { log.Debug("Received non-message or non-command") continue }