Merge pull request #5 from CoiaPrant233/bot-api-6.4-patch get sentfrom and fromchat when mychatmember hook
OvyFlash 46941696+OvyFlash@users.noreply.github.com
Sat, 21 Jan 2023 21:24:20 +0200
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 }