Skip to content

Commit f0385b7

Browse files
committed
fix: fixed unmarshalling of Message.UsersShared
1 parent ccc33d2 commit f0385b7

12 files changed

+3840
-4717
lines changed

tgbotapi/callback_query.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package tgbotapi
2+
3+
//go:generate ffjson $GOFILE
4+
5+
// CallbackQuery is data sent when a keyboard button with callback data
6+
// is clicked.
7+
type CallbackQuery struct {
8+
ID string `json:"id"`
9+
From *User `json:"from"`
10+
Message *Message `json:"message,omitempty"` // optional
11+
ChatInstance string `json:"chat_instance,omitempty"` // optional
12+
InlineMessageID string `json:"inline_message_id,omitempty"` // optional
13+
Data string `json:"data,omitempty"` // optional
14+
}

0 commit comments

Comments
 (0)