From 4f2c94bea275f3469eae2c6c2db1123e7394a24a Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Fri, 13 Jul 2018 15:57:10 +0300 Subject: [PATCH] minor fixes --- telegram.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.go b/telegram.go index c554f49..b0f192f 100644 --- a/telegram.go +++ b/telegram.go @@ -155,7 +155,7 @@ func telegramWebhookHandler(w http.ResponseWriter, r *http.Request, token string 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)} }