all repos — telegram-bot-api @ 1e94209b0bafcfe776749da10c1a1907e25dac94

Golang bindings for the Telegram Bot API

Add optional Chat field in MessageOrigin struct to support MessageOrigin type channel
OvyFlash olegshva4ko@gmail.com
Tue, 05 Mar 2024 20:02:42 +0200
commit

1e94209b0bafcfe776749da10c1a1907e25dac94

parent

8d235002285e104f167a231948b72bf286f5776e

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M types.gotypes.go

@@ -1157,10 +1157,12 @@ SenderUser *User `json:"sender_user,omitempty"`

// SenderUserName "hidden_user" only. // Name of the user that sent the message originally SenderUserName string `json:"sender_user_name,omitempty"` - // SenderChat "chat" and "channel". - // For "chat": Chat that sent the message originally - // For "channel": Channel chat to which the message was originally sent + // SenderChat "chat" only. + // Chat that sent the message originally SenderChat *Chat `json:"sender_chat,omitempty"` + // Chat "channel" only. + // Channel chat to which the message was originally sent + Chat *Chat `json:"chat,omitempty"` // AuthorSignature "chat" and "channel". // For "chat": For messages originally sent by an anonymous chat administrator, // original message author signature.