1
0
mirror of synced 2024-11-22 04:26:01 +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)
c.Error(err)
if update.Message.ReplyToMessage != nil {
c.AbortWithStatus(http.StatusOK)
} else {
c.Error(err)
}
return
}