@@ -101,19 +101,19 @@ type Update struct {
101
101
// unblocked by the user.
102
102
//
103
103
// optional
104
- MyChatMember * ChatMemberUpdated `json:"my_chat_member"`
104
+ MyChatMember * ChatMemberUpdated `json:"my_chat_member,omitempty "`
105
105
// ChatMember is a chat member's status was updated in a chat. The bot must
106
106
// be an administrator in the chat and must explicitly specify "chat_member"
107
107
// in the list of allowed_updates to receive these updates.
108
108
//
109
109
// optional
110
- ChatMember * ChatMemberUpdated `json:"chat_member"`
110
+ ChatMember * ChatMemberUpdated `json:"chat_member,omitempty "`
111
111
// ChatJoinRequest is a request to join the chat has been sent. The bot must
112
112
// have the can_invite_users administrator right in the chat to receive
113
113
// these updates.
114
114
//
115
115
// optional
116
- ChatJoinRequest * ChatJoinRequest `json:"chat_join_request"`
116
+ ChatJoinRequest * ChatJoinRequest `json:"chat_join_request,omitempty "`
117
117
}
118
118
119
119
// SentFrom returns the user who sent an update. Can be nil, if Telegram did not provide information
@@ -325,7 +325,7 @@ type Chat struct {
325
325
// connected. Returned only in getChat.
326
326
//
327
327
// optional
328
- Location * ChatLocation `json:"location"`
328
+ Location * ChatLocation `json:"location,omitempty "`
329
329
}
330
330
331
331
// IsPrivate returns if the Chat is a private conversation.
@@ -553,7 +553,7 @@ type Message struct {
553
553
// settings changed in the chat.
554
554
//
555
555
// optional
556
- MessageAutoDeleteTimerChanged * MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed"`
556
+ MessageAutoDeleteTimerChanged * MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty "`
557
557
// MigrateToChatID is the group has been migrated to a supergroup with the specified identifier.
558
558
// This number may be greater than 32 bits and some programming languages
559
559
// may have difficulty/silent defects in interpreting it.
@@ -598,28 +598,28 @@ type Message struct {
598
598
// triggered another user's proximity alert while sharing Live Location
599
599
//
600
600
// optional
601
- ProximityAlertTriggered * ProximityAlertTriggered `json:"proximity_alert_triggered"`
601
+ ProximityAlertTriggered * ProximityAlertTriggered `json:"proximity_alert_triggered,omitempty "`
602
602
// VideoChatScheduled is a service message: video chat scheduled.
603
603
//
604
604
// optional
605
- VideoChatScheduled * VideoChatScheduled `json:"video_chat_scheduled"`
605
+ VideoChatScheduled * VideoChatScheduled `json:"video_chat_scheduled,omitempty "`
606
606
// VideoChatStarted is a service message: video chat started.
607
607
//
608
608
// optional
609
- VideoChatStarted * VideoChatStarted `json:"video_chat_started"`
609
+ VideoChatStarted * VideoChatStarted `json:"video_chat_started,omitempty "`
610
610
// VideoChatEnded is a service message: video chat ended.
611
611
//
612
612
// optional
613
- VideoChatEnded * VideoChatEnded `json:"video_chat_ended"`
613
+ VideoChatEnded * VideoChatEnded `json:"video_chat_ended,omitempty "`
614
614
// VideoChatParticipantsInvited is a service message: new participants
615
615
// invited to a video chat.
616
616
//
617
617
// optional
618
- VideoChatParticipantsInvited * VideoChatParticipantsInvited `json:"video_chat_participants_invited"`
618
+ VideoChatParticipantsInvited * VideoChatParticipantsInvited `json:"video_chat_participants_invited,omitempty "`
619
619
// WebAppData is a service message: data sent by a Web App.
620
620
//
621
621
// optional
622
- WebAppData * WebAppData `json:"web_app_data"`
622
+ WebAppData * WebAppData `json:"web_app_data,omitempty "`
623
623
// ReplyMarkup is the Inline keyboard attached to the message.
624
624
// login_url buttons are represented as ordinary url buttons.
625
625
//
@@ -1202,7 +1202,7 @@ type VideoChatParticipantsInvited struct {
1202
1202
// New members that were invited to the voice chat.
1203
1203
//
1204
1204
// optional
1205
- Users []User `json:"users"`
1205
+ Users []User `json:"users,omitempty "`
1206
1206
}
1207
1207
1208
1208
// UserProfilePhotos contains a set of user profile photos.
@@ -1544,30 +1544,30 @@ type ChatInviteLink struct {
1544
1544
// be approved by chat administrators.
1545
1545
//
1546
1546
// optional
1547
- CreatesJoinRequest bool `json:"creates_join_request"`
1547
+ CreatesJoinRequest bool `json:"creates_join_request,omitempty "`
1548
1548
// IsPrimary is true, if the link is primary.
1549
1549
IsPrimary bool `json:"is_primary"`
1550
1550
// IsRevoked is true, if the link is revoked.
1551
1551
IsRevoked bool `json:"is_revoked"`
1552
1552
// Name is the name of the invite link.
1553
1553
//
1554
1554
// optional
1555
- Name string `json:"name"`
1555
+ Name string `json:"name,omitempty "`
1556
1556
// ExpireDate is the point in time (Unix timestamp) when the link will
1557
1557
// expire or has been expired.
1558
1558
//
1559
1559
// optional
1560
- ExpireDate int `json:"expire_date"`
1560
+ ExpireDate int `json:"expire_date,omitempty "`
1561
1561
// MemberLimit is the maximum number of users that can be members of the
1562
1562
// chat simultaneously after joining the chat via this invite link; 1-99999.
1563
1563
//
1564
1564
// optional
1565
- MemberLimit int `json:"member_limit"`
1565
+ MemberLimit int `json:"member_limit,omitempty "`
1566
1566
// PendingJoinRequestCount is the number of pending join requests created
1567
1567
// using this link.
1568
1568
//
1569
1569
// optional
1570
- PendingJoinRequestCount int `json:"pending_join_request_count"`
1570
+ PendingJoinRequestCount int `json:"pending_join_request_count,omitempty "`
1571
1571
}
1572
1572
1573
1573
type ChatAdministratorRights struct {
@@ -1605,7 +1605,7 @@ type ChatMember struct {
1605
1605
// in the chat is hidden
1606
1606
//
1607
1607
// optional
1608
- IsAnonymous bool `json:"is_anonymous"`
1608
+ IsAnonymous bool `json:"is_anonymous,omitempty "`
1609
1609
// UntilDate restricted and kicked only.
1610
1610
// Date when restrictions will be lifted for this user;
1611
1611
// unix time.
@@ -1624,7 +1624,7 @@ type ChatMember struct {
1624
1624
// any other administrator privilege.
1625
1625
//
1626
1626
// optional
1627
- CanManageChat bool `json:"can_manage_chat"`
1627
+ CanManageChat bool `json:"can_manage_chat,omitempty "`
1628
1628
// CanPostMessages administrators only.
1629
1629
// True, if the administrator can post in the channel;
1630
1630
// channels only.
@@ -1646,7 +1646,7 @@ type ChatMember struct {
1646
1646
// True, if the administrator can manage video chats.
1647
1647
//
1648
1648
// optional
1649
- CanManageVideoChats bool `json:"can_manage_video_chats"`
1649
+ CanManageVideoChats bool `json:"can_manage_video_chats,omitempty "`
1650
1650
// CanRestrictMembers administrators only.
1651
1651
// True, if the administrator can restrict, ban or unban chat members.
1652
1652
//
@@ -1732,7 +1732,7 @@ type ChatMemberUpdated struct {
1732
1732
// for joining by invite link events only.
1733
1733
//
1734
1734
// optional
1735
- InviteLink * ChatInviteLink `json:"invite_link"`
1735
+ InviteLink * ChatInviteLink `json:"invite_link,omitempty "`
1736
1736
}
1737
1737
1738
1738
// ChatJoinRequest represents a join request sent to a chat.
@@ -1746,11 +1746,11 @@ type ChatJoinRequest struct {
1746
1746
// Bio of the user.
1747
1747
//
1748
1748
// optional
1749
- Bio string `json:"bio"`
1749
+ Bio string `json:"bio,omitempty "`
1750
1750
// InviteLink is the link that was used by the user to send the join request.
1751
1751
//
1752
1752
// optional
1753
- InviteLink * ChatInviteLink `json:"invite_link"`
1753
+ InviteLink * ChatInviteLink `json:"invite_link,omitempty "`
1754
1754
}
1755
1755
1756
1756
// ChatPermissions describes actions that a non-administrator user is
@@ -1881,7 +1881,7 @@ type BaseInputMedia struct {
1881
1881
// which can be specified instead of parse_mode
1882
1882
//
1883
1883
// optional
1884
- CaptionEntities []MessageEntity `json:"caption_entities"`
1884
+ CaptionEntities []MessageEntity `json:"caption_entities,omitempty "`
1885
1885
}
1886
1886
1887
1887
// InputMediaPhoto is a photo to send as part of a media group.
@@ -2163,7 +2163,7 @@ type InlineQuery struct {
2163
2163
// unless the request was sent from a secret chat
2164
2164
//
2165
2165
// optional
2166
- ChatType string `json:"chat_type"`
2166
+ ChatType string `json:"chat_type,omitempty "`
2167
2167
// Location sender location, only for bots that request user location.
2168
2168
//
2169
2169
// optional
@@ -2676,23 +2676,23 @@ type InlineQueryResultLocation struct {
2676
2676
// measured in meters; 0-1500
2677
2677
//
2678
2678
// optional
2679
- HorizontalAccuracy float64 `json:"horizontal_accuracy"`
2679
+ HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty "`
2680
2680
// LivePeriod is the period in seconds for which the location can be
2681
2681
// updated, should be between 60 and 86400.
2682
2682
//
2683
2683
// optional
2684
- LivePeriod int `json:"live_period"`
2684
+ LivePeriod int `json:"live_period,omitempty "`
2685
2685
// Heading is for live locations, a direction in which the user is moving,
2686
2686
// in degrees. Must be between 1 and 360 if specified.
2687
2687
//
2688
2688
// optional
2689
- Heading int `json:"heading"`
2689
+ Heading int `json:"heading,omitempty "`
2690
2690
// ProximityAlertRadius is for live locations, a maximum distance for
2691
2691
// proximity alerts about approaching another chat member, in meters. Must
2692
2692
// be between 1 and 100000 if specified.
2693
2693
//
2694
2694
// optional
2695
- ProximityAlertRadius int `json:"proximity_alert_radius"`
2695
+ ProximityAlertRadius int `json:"proximity_alert_radius,omitempty "`
2696
2696
// ReplyMarkup inline keyboard attached to the message
2697
2697
//
2698
2698
// optional
@@ -2726,15 +2726,15 @@ type InlineQueryResultMPEG4GIF struct {
2726
2726
// Width video width
2727
2727
//
2728
2728
// optional
2729
- Width int `json:"mpeg4_width"`
2729
+ Width int `json:"mpeg4_width,omitempty "`
2730
2730
// Height vVideo height
2731
2731
//
2732
2732
// optional
2733
- Height int `json:"mpeg4_height"`
2733
+ Height int `json:"mpeg4_height,omitempty "`
2734
2734
// Duration video duration
2735
2735
//
2736
2736
// optional
2737
- Duration int `json:"mpeg4_duration"`
2737
+ Duration int `json:"mpeg4_duration,omitempty "`
2738
2738
// ThumbURL url of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
2739
2739
ThumbURL string `json:"thumb_url"`
2740
2740
// Title for the result
@@ -2989,7 +2989,7 @@ type SentWebAppMessage struct {
2989
2989
// keyboard attached to the message.
2990
2990
//
2991
2991
// optional
2992
- InlineMessageID string `json:"inline_message_id"`
2992
+ InlineMessageID string `json:"inline_message_id,omitempty "`
2993
2993
}
2994
2994
2995
2995
// InputTextMessageContent contains text for displaying
@@ -3025,7 +3025,7 @@ type InputLocationMessageContent struct {
3025
3025
// measured in meters; 0-1500
3026
3026
//
3027
3027
// optional
3028
- HorizontalAccuracy float64 `json:"horizontal_accuracy"`
3028
+ HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty "`
3029
3029
// LivePeriod is the period in seconds for which the location can be
3030
3030
// updated, should be between 60 and 86400
3031
3031
//
@@ -3035,13 +3035,13 @@ type InputLocationMessageContent struct {
3035
3035
// in degrees. Must be between 1 and 360 if specified.
3036
3036
//
3037
3037
// optional
3038
- Heading int `json:"heading"`
3038
+ Heading int `json:"heading,omitempty "`
3039
3039
// ProximityAlertRadius is for live locations, a maximum distance for
3040
3040
// proximity alerts about approaching another chat member, in meters. Must
3041
3041
// be between 1 and 100000 if specified.
3042
3042
//
3043
3043
// optional
3044
- ProximityAlertRadius int `json:"proximity_alert_radius"`
3044
+ ProximityAlertRadius int `json:"proximity_alert_radius,omitempty "`
3045
3045
}
3046
3046
3047
3047
// InputVenueMessageContent contains a venue for displaying
@@ -3066,11 +3066,11 @@ type InputVenueMessageContent struct {
3066
3066
// GooglePlaceID is the Google Places identifier of the venue
3067
3067
//
3068
3068
// optional
3069
- GooglePlaceID string `json:"google_place_id"`
3069
+ GooglePlaceID string `json:"google_place_id,omitempty "`
3070
3070
// GooglePlaceType is the Google Places type of the venue
3071
3071
//
3072
3072
// optional
3073
- GooglePlaceType string `json:"google_place_type"`
3073
+ GooglePlaceType string `json:"google_place_type,omitempty "`
3074
3074
}
3075
3075
3076
3076
// InputContactMessageContent contains a contact for displaying
0 commit comments