@@ -147,13 +147,13 @@ type Message struct {
147147 MediaGroupID string `json:"media_group_id"` // optional
148148 AuthorSignature string `json:"author_signature"` // optional
149149 Text string `json:"text"` // optional
150- Entities * []MessageEntity `json:"entities"` // optional
151- CaptionEntities * []MessageEntity `json:"caption_entities"` // optional
150+ Entities []MessageEntity `json:"entities"` // optional
151+ CaptionEntities []MessageEntity `json:"caption_entities"` // optional
152152 Audio * Audio `json:"audio"` // optional
153153 Document * Document `json:"document"` // optional
154154 Animation * ChatAnimation `json:"animation"` // optional
155155 Game * Game `json:"game"` // optional
156- Photo * []PhotoSize `json:"photo"` // optional
156+ Photo []PhotoSize `json:"photo"` // optional
157157 Sticker * Sticker `json:"sticker"` // optional
158158 Video * Video `json:"video"` // optional
159159 VideoNote * VideoNote `json:"video_note"` // optional
@@ -162,10 +162,10 @@ type Message struct {
162162 Contact * Contact `json:"contact"` // optional
163163 Location * Location `json:"location"` // optional
164164 Venue * Venue `json:"venue"` // optional
165- NewChatMembers * []User `json:"new_chat_members"` // optional
165+ NewChatMembers []User `json:"new_chat_members"` // optional
166166 LeftChatMember * User `json:"left_chat_member"` // optional
167167 NewChatTitle string `json:"new_chat_title"` // optional
168- NewChatPhoto * []PhotoSize `json:"new_chat_photo"` // optional
168+ NewChatPhoto []PhotoSize `json:"new_chat_photo"` // optional
169169 DeleteChatPhoto bool `json:"delete_chat_photo"` // optional
170170 GroupChatCreated bool `json:"group_chat_created"` // optional
171171 SuperGroupChatCreated bool `json:"supergroup_chat_created"` // optional
@@ -186,11 +186,11 @@ func (m *Message) Time() time.Time {
186186
187187// IsCommand returns true if message starts with a "bot_command" entity.
188188func (m * Message ) IsCommand () bool {
189- if m .Entities == nil || len (* m .Entities ) == 0 {
189+ if m .Entities == nil || len (m .Entities ) == 0 {
190190 return false
191191 }
192192
193- entity := ( * m .Entities ) [0 ]
193+ entity := m .Entities [0 ]
194194 return entity .Offset == 0 && entity .Type == "bot_command"
195195}
196196
@@ -220,7 +220,7 @@ func (m *Message) CommandWithAt() string {
220220 }
221221
222222 // IsCommand() checks that the message begins with a bot_command entity
223- entity := ( * m .Entities ) [0 ]
223+ entity := m .Entities [0 ]
224224 return m .Text [1 :entity .Length ]
225225}
226226
@@ -239,7 +239,7 @@ func (m *Message) CommandArguments() string {
239239 }
240240
241241 // IsCommand() checks that the message begins with a bot_command entity
242- entity := ( * m .Entities ) [0 ]
242+ entity := m .Entities [0 ]
243243
244244 if len (m .Text ) == entity .Length {
245245 return "" // The command makes up the whole message
@@ -795,9 +795,9 @@ type OrderInfo struct {
795795
796796// ShippingOption represents one shipping option.
797797type ShippingOption struct {
798- ID string `json:"id"`
799- Title string `json:"title"`
800- Prices * []LabeledPrice `json:"prices"`
798+ ID string `json:"id"`
799+ Title string `json:"title"`
800+ Prices []LabeledPrice `json:"prices"`
801801}
802802
803803// SuccessfulPayment contains basic information about a successful payment.
0 commit comments