Skip to content

Commit 3ed6b6a

Browse files
author
Syfaro
committed
EditedMessage to Update, EditDate to Message, User to MessageEntity.
1 parent bdaf1dc commit 3ed6b6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type APIResponse struct {
2222
type Update struct {
2323
UpdateID int `json:"update_id"`
2424
Message *Message `json:"message"`
25+
EditedMessage *Message `json:"edited_message"`
2526
InlineQuery *InlineQuery `json:"inline_query"`
2627
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result"`
2728
CallbackQuery *CallbackQuery `json:"callback_query"`
@@ -99,6 +100,7 @@ type Message struct {
99100
ForwardFromChat *Chat `json:"forward_from_chat"` // optional
100101
ForwardDate int `json:"forward_date"` // optional
101102
ReplyToMessage *Message `json:"reply_to_message"` // optional
103+
EditDate int `json:"edit_date"` // optional
102104
Text string `json:"text"` // optional
103105
Entities *[]MessageEntity `json:"entities"` // optional
104106
Audio *Audio `json:"audio"` // optional
@@ -173,7 +175,8 @@ type MessageEntity struct {
173175
Type string `json:"type"`
174176
Offset int `json:"offset"`
175177
Length int `json:"length"`
176-
URL string `json:"url"` // optional
178+
URL string `json:"url"` // optional
179+
User *User `json:"user"` // optional
177180
}
178181

179182
// ParseURL attempts to parse a URL contained within a MessageEntity.

0 commit comments

Comments
 (0)