Skip to content

Commit 3c4d842

Browse files
Georgedemget
authored andcommitted
Added is_member field for ChatMember. Previously, it was not possible to check whether a ChatMemberRestricted had joined or left a chat.
1 parent c581e83 commit 3c4d842

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ type ChatMember struct {
106106
Role MemberStatus `json:"status"`
107107
Title string `json:"custom_title"`
108108
Anonymous bool `json:"is_anonymous"`
109+
Member bool `json:"is_member,omitempty"`
109110

110111
// Date when restrictions will be lifted for the user, unix time.
111112
//

0 commit comments

Comments
 (0)