From 68ad7fd5dcdbfdc4f6513e0195ad6edb2c3e0573 Mon Sep 17 00:00:00 2001 From: Ian Byrd Date: Wed, 13 Apr 2016 21:04:51 +0300 Subject: [PATCH] Hotfixing the bug introduced by jerks from Telegram: >Renamed the fields new_chat_participant and left_chat_participant >of the Message object to new_chat_member and left_chat_member. via https://core.telegram.org/bots/api#recent-changes --- message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/message.go b/message.go index ab6db95..1d2f5d3 100644 --- a/message.go +++ b/message.go @@ -58,7 +58,7 @@ type Message struct { // Sender leads to User, capable of invite. // // UserJoined might be the Bot itself. - UserJoined User `json:"new_chat_participant"` + UserJoined User `json:"new_chat_member"` // For a service message, represents a user, // that just left chat, this message came from. @@ -67,7 +67,7 @@ type Message struct { // capable of this kick. // // UserLeft might be the Bot itself. - UserLeft User `json:"left_chat_participant"` + UserLeft User `json:"left_chat_member"` // For a service message, represents a new title // for chat this message came from.