new fields for ChatMember
parent
b57800c534
commit
b4a811b756
14
types.go
14
types.go
|
@ -402,6 +402,20 @@ type ForceReply struct {
|
||||||
type ChatMember struct {
|
type ChatMember struct {
|
||||||
User *User `json:"user"`
|
User *User `json:"user"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
UntilDate int64 `json:"until_date,omitempty"` // optional
|
||||||
|
CanBeEdited bool `json:"can_be_edited,omitempty"` // optional
|
||||||
|
CanChangeInfo bool `json:"can_change_info,omitempty"` // optional
|
||||||
|
CanPostMessages bool `json:"can_post_messages,omitempty"` // optional
|
||||||
|
CanEditMessages bool `json:"can_edit_messages,omitempty"` // optional
|
||||||
|
CanDeleteMessages bool `json:"can_delete_messages,omitempty"` // optional
|
||||||
|
CanInviteUsers bool `json:"can_invite_users,omitempty"` // optional
|
||||||
|
CanRestrictMembers bool `json:"can_restrict_members,omitempty"` // optional
|
||||||
|
CanPinMessages bool `json:"can_pin_messages,omitempty"` // optional
|
||||||
|
CanPromoteMembers bool `json:"can_promote_members,omitempty"` // optional
|
||||||
|
CanSendMessages bool `json:"can_send_messages,omitempty"` // optional
|
||||||
|
CanSendMediaMessages bool `json:"can_send_media_messages,omitempty"` // optional
|
||||||
|
CanSendOtherMessages bool `json:"can_send_other_messages,omitempty"` // optional
|
||||||
|
CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"` // optional
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsCreator returns if the ChatMember was the creator of the chat.
|
// IsCreator returns if the ChatMember was the creator of the chat.
|
||||||
|
|
Loading…
Reference in New Issue