@@ -147,7 +147,7 @@ func (u *Update) CallbackData() string {
147147 return ""
148148}
149149
150- // FromChat returns the chat where an update occured .
150+ // FromChat returns the chat where an update occurred .
151151func (u * Update ) FromChat () * Chat {
152152 switch {
153153 case u .Message != nil :
@@ -278,7 +278,7 @@ type Chat struct {
278278 //
279279 // optional
280280 PinnedMessage * Message `json:"pinned_message,omitempty"`
281- // Permissions is default chat member permissions, for groups and
281+ // Permissions are default chat member permissions, for groups and
282282 // supergroups. Returned only in getChat.
283283 //
284284 // optional
@@ -410,7 +410,7 @@ type Message struct {
410410 //
411411 // optional
412412 Text string `json:"text,omitempty"`
413- // Entities is for text messages, special entities like usernames,
413+ // Entities are for text messages, special entities like usernames,
414414 // URLs, bot commands, etc. that appear in the text;
415415 //
416416 // optional
@@ -532,15 +532,15 @@ type Message struct {
532532 // MigrateToChatID is the group has been migrated to a supergroup with the specified identifier.
533533 // This number may be greater than 32 bits and some programming languages
534534 // may have difficulty/silent defects in interpreting it.
535- // But it is smaller than 52 bits, so a signed 64 bit integer
535+ // But it is smaller than 52 bits, so a signed 64- bit integer
536536 // or double-precision float type are safe for storing this identifier;
537537 //
538538 // optional
539539 MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"`
540540 // MigrateFromChatID is the supergroup has been migrated from a group with the specified identifier.
541541 // This number may be greater than 32 bits and some programming languages
542542 // may have difficulty/silent defects in interpreting it.
543- // But it is smaller than 52 bits, so a signed 64 bit integer
543+ // But it is smaller than 52 bits, so a signed 64- bit integer
544544 // or double-precision float type are safe for storing this identifier;
545545 //
546546 // optional
@@ -560,7 +560,7 @@ type Message struct {
560560 //
561561 // optional
562562 SuccessfulPayment * SuccessfulPayment `json:"successful_payment,omitempty"`
563- // ConnectedWebsite is Tthe domain name of the website on which the user has
563+ // ConnectedWebsite is the domain name of the website on which the user has
564564 // logged in;
565565 //
566566 // optional
@@ -790,7 +790,7 @@ type PhotoSize struct {
790790
791791// Animation represents an animation file.
792792type Animation struct {
793- // FileID odentifier for this file, which can be used to download or reuse
793+ // FileID is the identifier for this file, which can be used to download or reuse
794794 // the file
795795 FileID string `json:"file_id"`
796796 // FileUniqueID is the unique identifier for this file, which is supposed to
@@ -860,7 +860,7 @@ type Audio struct {
860860
861861// Document represents a general file.
862862type Document struct {
863- // FileID is a identifier for this file, which can be used to download or
863+ // FileID is an identifier for this file, which can be used to download or
864864 // reuse the file
865865 FileID string `json:"file_id"`
866866 // FileUniqueID is the unique identifier for this file, which is supposed to
@@ -1038,7 +1038,7 @@ type Poll struct {
10381038 //
10391039 // optional
10401040 Explanation string `json:"explanation,omitempty"`
1041- // ExplainationEntities are special entities like usernames, URLs, bot
1041+ // ExplanationEntities are special entities like usernames, URLs, bot
10421042 // commands, etc. that appear in the explanation
10431043 //
10441044 // optional
@@ -1048,7 +1048,7 @@ type Poll struct {
10481048 //
10491049 // optional
10501050 OpenPeriod int `json:"open_period,omitempty"`
1051- // Closedate is the point in time (unix timestamp) when the poll will be
1051+ // CloseDate is the point in time (unix timestamp) when the poll will be
10521052 // automatically closed
10531053 //
10541054 // optional
@@ -1258,7 +1258,7 @@ type KeyboardButton struct {
12581258 RequestPoll * KeyboardButtonPollType `json:"request_poll,omitempty"`
12591259}
12601260
1261- // KeyboardButtonPollType represents type of a poll, which is allowed to
1261+ // KeyboardButtonPollType represents type of poll, which is allowed to
12621262// be created and sent when the corresponding button is pressed.
12631263type KeyboardButtonPollType struct {
12641264 // Type is if quiz is passed, the user will be allowed to create only polls
@@ -1542,7 +1542,7 @@ type ChatMember struct {
15421542 // CanManageChat administrators only.
15431543 // True, if the administrator can access the chat event log, chat
15441544 // statistics, message statistics in channels, see channel members, see
1545- // anonymous administrators in supergoups and ignore slow mode. Implied by
1545+ // anonymous administrators in supergroups and ignore slow mode. Implied by
15461546 // any other administrator privilege.
15471547 //
15481548 // optional
@@ -1845,7 +1845,7 @@ type InputMediaAnimation struct {
18451845 Duration int `json:"duration,omitempty"`
18461846}
18471847
1848- // InputMediaAudio is a audio to send as part of a media group.
1848+ // InputMediaAudio is an audio to send as part of a media group.
18491849type InputMediaAudio struct {
18501850 BaseInputMedia
18511851 // Thumbnail of the file sent; can be ignored if thumbnail generation for
@@ -1888,7 +1888,7 @@ type Sticker struct {
18881888 // FileID is an identifier for this file, which can be used to download or
18891889 // reuse the file
18901890 FileID string `json:"file_id"`
1891- // FileUniqueID is an unique identifier for this file,
1891+ // FileUniqueID is a unique identifier for this file,
18921892 // which is supposed to be the same over time and for different bots.
18931893 // Can't be used to download or reuse the file.
18941894 FileUniqueID string `json:"file_unique_id"`
@@ -1976,7 +1976,7 @@ type Game struct {
19761976 //
19771977 // optional
19781978 TextEntities []MessageEntity `json:"text_entities,omitempty"`
1979- // Animation animation that will be displayed in the game message in chats.
1979+ // Animation is an animation that will be displayed in the game message in chats.
19801980 // Upload via BotFather (https://t.me/botfather).
19811981 //
19821982 // optional
@@ -2094,7 +2094,7 @@ type InlineQueryResultCachedAudio struct {
20942094
20952095// InlineQueryResultCachedDocument is an inline query response with cached document.
20962096type InlineQueryResultCachedDocument struct {
2097- // Type of the result, must be document
2097+ // Type of the result, must be a document
20982098 Type string `json:"type"`
20992099 // ID unique identifier for this result, 1-64 bytes
21002100 ID string `json:"id"`
@@ -2211,7 +2211,7 @@ type InlineQueryResultCachedMPEG4GIF struct {
22112211
22122212// InlineQueryResultCachedPhoto is an inline query response with cached photo.
22132213type InlineQueryResultCachedPhoto struct {
2214- // Type of the result, must be photo.
2214+ // Type of the result, must be a photo.
22152215 Type string `json:"type"`
22162216 // ID unique identifier for this result, 1-64 bytes.
22172217 ID string `json:"id"`
@@ -2252,7 +2252,7 @@ type InlineQueryResultCachedPhoto struct {
22522252
22532253// InlineQueryResultCachedSticker is an inline query response with cached sticker.
22542254type InlineQueryResultCachedSticker struct {
2255- // Type of the result, must be sticker
2255+ // Type of the result, must be a sticker
22562256 Type string `json:"type"`
22572257 // ID unique identifier for this result, 1-64 bytes
22582258 ID string `json:"id"`
@@ -2458,7 +2458,7 @@ type InlineQueryResultGame struct {
24582458
24592459// InlineQueryResultDocument is an inline query response document.
24602460type InlineQueryResultDocument struct {
2461- // Type of the result, must be document
2461+ // Type of the result, must be a document
24622462 Type string `json:"type"`
24632463 // ID unique identifier for this result, 1-64 bytes
24642464 ID string `json:"id"`
@@ -2476,7 +2476,7 @@ type InlineQueryResultDocument struct {
24762476 //
24772477 // optional
24782478 Description string `json:"description,omitempty"`
2479- // ReplyMarkup nline keyboard attached to the message
2479+ // ReplyMarkup inline keyboard attached to the message
24802480 //
24812481 // optional
24822482 ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
0 commit comments