@@ -10,24 +10,24 @@ const (
1010
1111// Update represents an incoming Telegram update.
1212type Update struct {
13- ID int `json:"update_id"`
14- Message * Message `json:"message,omitempty"`
15- EditedMessage * Message `json:"edited_message,omitempty"`
16- CallbackQuery * CallbackQuery `json:"callback_query,omitempty"`
13+ ID int `json:"update_id"`
14+ Message * Message `json:"message,omitempty"`
15+ EditedMessage * Message `json:"edited_message,omitempty"`
16+ CallbackQuery * CallbackQuery `json:"callback_query,omitempty"`
1717}
1818
1919// Message represents a Telegram message.
2020type Message struct {
21- ID int `json:"message_id"`
22- From * User `json:"from,omitempty"`
23- Chat * Chat `json:"chat,omitempty"`
24- Date int `json:"date,omitempty"`
25- Text string `json:"text,omitempty"`
26- Entities []MessageEntity `json:"entities,omitempty"`
27- Photo []PhotoSize `json:"photo,omitempty"`
28- Voice * Voice `json:"voice,omitempty"`
29- Document * Document `json:"document,omitempty"`
30- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
21+ ID int `json:"message_id"`
22+ From * User `json:"from,omitempty"`
23+ Chat * Chat `json:"chat,omitempty"`
24+ Date int `json:"date,omitempty"`
25+ Text string `json:"text,omitempty"`
26+ Entities []MessageEntity `json:"entities,omitempty"`
27+ Photo []PhotoSize `json:"photo,omitempty"`
28+ Voice * Voice `json:"voice,omitempty"`
29+ Document * Document `json:"document,omitempty"`
30+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
3131}
3232
3333// User represents a Telegram user or bot.
@@ -132,36 +132,36 @@ type WebhookInfo struct {
132132
133133// SendOpts contains optional parameters for SendMessage.
134134type SendOpts struct {
135- ParseMode string `json:"parse_mode,omitempty"`
136- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
137- DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
138- ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
135+ ParseMode string `json:"parse_mode,omitempty"`
136+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
137+ DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
138+ ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
139139}
140140
141141// UpdateResponse is the generic Telegram API response for a single update-related request.
142142type UpdateResponse struct {
143- OK bool `json:"ok"`
144- Result json.RawMessage `json:"result,omitempty"`
145- Description string `json:"description,omitempty"`
146- ErrorCode int `json:"error_code,omitempty"`
143+ OK bool `json:"ok"`
144+ Result json.RawMessage `json:"result,omitempty"`
145+ Description string `json:"description,omitempty"`
146+ ErrorCode int `json:"error_code,omitempty"`
147147}
148148
149149// UserProfilePhotos contains a set of user profile photos.
150150type UserProfilePhotos struct {
151- TotalCount int `json:"total_count,omitempty"`
151+ TotalCount int `json:"total_count,omitempty"`
152152 Photos [][]PhotoSize `json:"photos,omitempty"`
153153}
154154
155155// FileResponse is the Telegram API response for getFile.
156156type FileResponse struct {
157- OK bool `json:"ok"`
158- Result * File `json:"result,omitempty"`
157+ OK bool `json:"ok"`
158+ Result * File `json:"result,omitempty"`
159159}
160160
161161// GetUpdatesResponse is the Telegram API response for getUpdates.
162162type GetUpdatesResponse struct {
163- OK bool `json:"ok"`
164- Result []Update `json:"result,omitempty"`
163+ OK bool `json:"ok"`
164+ Result []Update `json:"result,omitempty"`
165165}
166166
167167// SendMessageResponse is the Telegram API response for sendMessage.
0 commit comments