get sentfrom and fromchat when mychatmember hook
CoiaPrant233 112553141+CoiaPrant233@users.noreply.github.com
Wed, 18 Jan 2023 16:59:03 +0800
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
types.go
→
types.go
@@ -134,6 +134,8 @@ case u.ShippingQuery != nil:
return u.ShippingQuery.From case u.PreCheckoutQuery != nil: return u.PreCheckoutQuery.From + case u.MyChatMember != nil: + return &u.MyChatMember.From default: return nil }@@ -160,6 +162,8 @@ case u.EditedChannelPost != nil:
return u.EditedChannelPost.Chat case u.CallbackQuery != nil: return u.CallbackQuery.Message.Chat + case u.MyChatMember != nil: + return &u.MyChatMember.Chat default: return nil }