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
pull/35/merge
Ian Byrd 8 years ago
parent 4de603f9ee
commit 68ad7fd5dc
No known key found for this signature in database
GPG Key ID: 598F598CA3B8055F

@ -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.

Loading…
Cancel
Save