1
0
mirror of synced 2024-11-25 21:26:02 +03:00

minor fixes

This commit is contained in:
DmitryZagorulko 2018-07-13 15:57:10 +03:00
parent 728ffd4b15
commit 4f2c94bea2

View File

@ -155,7 +155,7 @@ func telegramWebhookHandler(w http.ResponseWriter, r *http.Request, token string
ExternalChatID: strconv.FormatInt(update.Message.Chat.ID, 10), ExternalChatID: strconv.FormatInt(update.Message.Chat.ID, 10),
} }
if update.Message.ReplyToMessage.MessageID != 0 { if update.Message.ReplyToMessage != nil {
snd.Quote = &v1.SendMessageRequestQuote{ExternalID: strconv.Itoa(update.Message.ReplyToMessage.MessageID)} snd.Quote = &v1.SendMessageRequestQuote{ExternalID: strconv.Itoa(update.Message.ReplyToMessage.MessageID)}
} }