1
0
mirror of synced 2024-11-25 13:16:02 +03:00

fix error with quote message

This commit is contained in:
DmitryZagorulko 2018-12-20 15:03:18 +03:00
parent 284f2e5643
commit 9db7c61359

View File

@ -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)
if update.Message.ReplyToMessage != nil {
c.AbortWithStatus(http.StatusOK)
} else {
c.Error(err)
}
return
}