all repos — telegram-bot-api @ 7afb333539f3df5325a7dd4aa6cb8e7743e9b954

Golang bindings for the Telegram Bot API

get sentfrom and fromchat when mychatmember hook
CoiaPrant233 112553141+CoiaPrant233@users.noreply.github.com
Wed, 18 Jan 2023 16:59:03 +0800
commit

7afb333539f3df5325a7dd4aa6cb8e7743e9b954

parent

5e115c98c785b5aefa00552c0c366eb6940078f1

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M types.gotypes.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 }