all repos — telegram-bot-api @ 15c95b8a841865bf5cb00292f227f410c01cf4a2

Golang bindings for the Telegram Bot API

Merge pull request #364 from go-telegram-bot-api/chatmember-custom-title

Add CustomTitle field to ChatMember
TJ Horner me@tjhorner.com
Tue, 11 Aug 2020 14:23:51 -0400
commit

15c95b8a841865bf5cb00292f227f410c01cf4a2

parent

fb8759e91dfc6af21bd422f49040e4ff463381b4

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M types.gotypes.go

@@ -517,6 +517,7 @@ // ChatMember is information about a member in a chat.

type ChatMember struct { User *User `json:"user"` Status string `json:"status"` + CustomTitle string `json:"custom_title,omitempty"` // optional UntilDate int64 `json:"until_date,omitempty"` // optional CanBeEdited bool `json:"can_be_edited,omitempty"` // optional CanChangeInfo bool `json:"can_change_info,omitempty"` // optional