From 3c4d8425f49f757335956ecc17dd022c505657b5 Mon Sep 17 00:00:00 2001 From: George Date: Sun, 3 Sep 2023 22:07:54 +0300 Subject: [PATCH] Added is_member field for ChatMember. Previously, it was not possible to check whether a ChatMemberRestricted had joined or left a chat. --- chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chat.go b/chat.go index ffb8d0e..988578c 100644 --- a/chat.go +++ b/chat.go @@ -106,6 +106,7 @@ type ChatMember struct { Role MemberStatus `json:"status"` Title string `json:"custom_title"` Anonymous bool `json:"is_anonymous"` + Member bool `json:"is_member,omitempty"` // Date when restrictions will be lifted for the user, unix time. //