1
0
mirror of synced 2024-11-22 12:26:02 +03:00

Merge pull request #24 from DmitryZagorulko/master

minor fixes
This commit is contained in:
Alex Lushpai 2018-07-13 15:59:29 +03:00 committed by GitHub
commit 6ff3e4ab51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}
}