Add optional Chat field in MessageOrigin struct to support MessageOrigin type channel

pull/19/head
OvyFlash 2024-03-05 20:02:42 +02:00
parent 8d23500228
commit 1e94209b0b
1 changed files with 5 additions and 3 deletions

View File

@ -1157,10 +1157,12 @@ type MessageOrigin struct {
// SenderUserName "hidden_user" only. // SenderUserName "hidden_user" only.
// Name of the user that sent the message originally // Name of the user that sent the message originally
SenderUserName string `json:"sender_user_name,omitempty"` SenderUserName string `json:"sender_user_name,omitempty"`
// SenderChat "chat" and "channel". // SenderChat "chat" only.
// For "chat": Chat that sent the message originally // Chat that sent the message originally
// For "channel": Channel chat to which the message was originally sent
SenderChat *Chat `json:"sender_chat,omitempty"` 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". // AuthorSignature "chat" and "channel".
// For "chat": For messages originally sent by an anonymous chat administrator, // For "chat": For messages originally sent by an anonymous chat administrator,
// original message author signature. // original message author signature.