@@ -147,7 +147,7 @@ func (u *Update) CallbackData() string {
147
147
return ""
148
148
}
149
149
150
- // FromChat returns the chat where an update occured .
150
+ // FromChat returns the chat where an update occurred .
151
151
func (u * Update ) FromChat () * Chat {
152
152
switch {
153
153
case u .Message != nil :
@@ -278,7 +278,7 @@ type Chat struct {
278
278
//
279
279
// optional
280
280
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
282
282
// supergroups. Returned only in getChat.
283
283
//
284
284
// optional
@@ -410,7 +410,7 @@ type Message struct {
410
410
//
411
411
// optional
412
412
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,
414
414
// URLs, bot commands, etc. that appear in the text;
415
415
//
416
416
// optional
@@ -532,15 +532,15 @@ type Message struct {
532
532
// MigrateToChatID is the group has been migrated to a supergroup with the specified identifier.
533
533
// This number may be greater than 32 bits and some programming languages
534
534
// 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
536
536
// or double-precision float type are safe for storing this identifier;
537
537
//
538
538
// optional
539
539
MigrateToChatID int64 `json:"migrate_to_chat_id,omitempty"`
540
540
// MigrateFromChatID is the supergroup has been migrated from a group with the specified identifier.
541
541
// This number may be greater than 32 bits and some programming languages
542
542
// 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
544
544
// or double-precision float type are safe for storing this identifier;
545
545
//
546
546
// optional
@@ -560,7 +560,7 @@ type Message struct {
560
560
//
561
561
// optional
562
562
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
564
564
// logged in;
565
565
//
566
566
// optional
@@ -790,7 +790,7 @@ type PhotoSize struct {
790
790
791
791
// Animation represents an animation file.
792
792
type 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
794
794
// the file
795
795
FileID string `json:"file_id"`
796
796
// FileUniqueID is the unique identifier for this file, which is supposed to
@@ -860,7 +860,7 @@ type Audio struct {
860
860
861
861
// Document represents a general file.
862
862
type 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
864
864
// reuse the file
865
865
FileID string `json:"file_id"`
866
866
// FileUniqueID is the unique identifier for this file, which is supposed to
@@ -1038,7 +1038,7 @@ type Poll struct {
1038
1038
//
1039
1039
// optional
1040
1040
Explanation string `json:"explanation,omitempty"`
1041
- // ExplainationEntities are special entities like usernames, URLs, bot
1041
+ // ExplanationEntities are special entities like usernames, URLs, bot
1042
1042
// commands, etc. that appear in the explanation
1043
1043
//
1044
1044
// optional
@@ -1048,7 +1048,7 @@ type Poll struct {
1048
1048
//
1049
1049
// optional
1050
1050
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
1052
1052
// automatically closed
1053
1053
//
1054
1054
// optional
@@ -1258,7 +1258,7 @@ type KeyboardButton struct {
1258
1258
RequestPoll * KeyboardButtonPollType `json:"request_poll,omitempty"`
1259
1259
}
1260
1260
1261
- // KeyboardButtonPollType represents type of a poll, which is allowed to
1261
+ // KeyboardButtonPollType represents type of poll, which is allowed to
1262
1262
// be created and sent when the corresponding button is pressed.
1263
1263
type KeyboardButtonPollType struct {
1264
1264
// Type is if quiz is passed, the user will be allowed to create only polls
@@ -1542,7 +1542,7 @@ type ChatMember struct {
1542
1542
// CanManageChat administrators only.
1543
1543
// True, if the administrator can access the chat event log, chat
1544
1544
// 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
1546
1546
// any other administrator privilege.
1547
1547
//
1548
1548
// optional
@@ -1845,7 +1845,7 @@ type InputMediaAnimation struct {
1845
1845
Duration int `json:"duration,omitempty"`
1846
1846
}
1847
1847
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.
1849
1849
type InputMediaAudio struct {
1850
1850
BaseInputMedia
1851
1851
// Thumbnail of the file sent; can be ignored if thumbnail generation for
@@ -1888,7 +1888,7 @@ type Sticker struct {
1888
1888
// FileID is an identifier for this file, which can be used to download or
1889
1889
// reuse the file
1890
1890
FileID string `json:"file_id"`
1891
- // FileUniqueID is an unique identifier for this file,
1891
+ // FileUniqueID is a unique identifier for this file,
1892
1892
// which is supposed to be the same over time and for different bots.
1893
1893
// Can't be used to download or reuse the file.
1894
1894
FileUniqueID string `json:"file_unique_id"`
@@ -1976,7 +1976,7 @@ type Game struct {
1976
1976
//
1977
1977
// optional
1978
1978
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.
1980
1980
// Upload via BotFather (https://t.me/botfather).
1981
1981
//
1982
1982
// optional
@@ -2094,7 +2094,7 @@ type InlineQueryResultCachedAudio struct {
2094
2094
2095
2095
// InlineQueryResultCachedDocument is an inline query response with cached document.
2096
2096
type InlineQueryResultCachedDocument struct {
2097
- // Type of the result, must be document
2097
+ // Type of the result, must be a document
2098
2098
Type string `json:"type"`
2099
2099
// ID unique identifier for this result, 1-64 bytes
2100
2100
ID string `json:"id"`
@@ -2211,7 +2211,7 @@ type InlineQueryResultCachedMPEG4GIF struct {
2211
2211
2212
2212
// InlineQueryResultCachedPhoto is an inline query response with cached photo.
2213
2213
type InlineQueryResultCachedPhoto struct {
2214
- // Type of the result, must be photo.
2214
+ // Type of the result, must be a photo.
2215
2215
Type string `json:"type"`
2216
2216
// ID unique identifier for this result, 1-64 bytes.
2217
2217
ID string `json:"id"`
@@ -2252,7 +2252,7 @@ type InlineQueryResultCachedPhoto struct {
2252
2252
2253
2253
// InlineQueryResultCachedSticker is an inline query response with cached sticker.
2254
2254
type InlineQueryResultCachedSticker struct {
2255
- // Type of the result, must be sticker
2255
+ // Type of the result, must be a sticker
2256
2256
Type string `json:"type"`
2257
2257
// ID unique identifier for this result, 1-64 bytes
2258
2258
ID string `json:"id"`
@@ -2458,7 +2458,7 @@ type InlineQueryResultGame struct {
2458
2458
2459
2459
// InlineQueryResultDocument is an inline query response document.
2460
2460
type InlineQueryResultDocument struct {
2461
- // Type of the result, must be document
2461
+ // Type of the result, must be a document
2462
2462
Type string `json:"type"`
2463
2463
// ID unique identifier for this result, 1-64 bytes
2464
2464
ID string `json:"id"`
@@ -2476,7 +2476,7 @@ type InlineQueryResultDocument struct {
2476
2476
//
2477
2477
// optional
2478
2478
Description string `json:"description,omitempty"`
2479
- // ReplyMarkup nline keyboard attached to the message
2479
+ // ReplyMarkup inline keyboard attached to the message
2480
2480
//
2481
2481
// optional
2482
2482
ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
0 commit comments