From 9db7c61359e8647576c2c7801eb80ad3d524d725 Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Thu, 20 Dec 2018 15:03:18 +0300 Subject: [PATCH] fix error with quote message --- src/routing.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routing.go b/src/routing.go index cb06dca..a1433a6 100644 --- a/src/routing.go +++ b/src/routing.go @@ -552,7 +552,13 @@ func telegramWebhookHandler(c *gin.Context) { data, st, err := client.Messages(snd) if err != nil { logger.Error(b.Token, err.Error(), st, data) - c.Error(err) + + if update.Message.ReplyToMessage != nil { + c.AbortWithStatus(http.StatusOK) + } else { + c.Error(err) + } + return }