all repos — telegram-bot-api @ 303c6995b9cf12f9d4dbdbb41348b83e31dd3784

Golang bindings for the Telegram Bot API

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
commit

303c6995b9cf12f9d4dbdbb41348b83e31dd3784

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 }