Skip to content

Commit 3834565

Browse files
authored
Merge pull request #487 from alexandear/fix-commented-funcs
Fix comment format for functions and constants
2 parents 8999cea + 4986a8c commit 3834565

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

configs.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,48 +52,48 @@ const (
5252

5353
// Constant values for update types
5454
const (
55-
// New incoming message of any kind — text, photo, sticker, etc.
55+
// UpdateTypeMessage is new incoming message of any kind — text, photo, sticker, etc.
5656
UpdateTypeMessage = "message"
5757

58-
// New version of a message that is known to the bot and was edited
58+
// UpdateTypeEditedMessage is new version of a message that is known to the bot and was edited
5959
UpdateTypeEditedMessage = "edited_message"
6060

61-
// New incoming channel post of any kind — text, photo, sticker, etc.
61+
// UpdateTypeChannelPost is new incoming channel post of any kind — text, photo, sticker, etc.
6262
UpdateTypeChannelPost = "channel_post"
6363

64-
// New version of a channel post that is known to the bot and was edited
64+
// UpdateTypeEditedChannelPost is new version of a channel post that is known to the bot and was edited
6565
UpdateTypeEditedChannelPost = "edited_channel_post"
6666

67-
// New incoming inline query
67+
// UpdateTypeInlineQuery is new incoming inline query
6868
UpdateTypeInlineQuery = "inline_query"
6969

70-
// The result of an inline query that was chosen by a user and sent to their
70+
// UpdateTypeChosenInlineResult i the result of an inline query that was chosen by a user and sent to their
7171
// chat partner. Please see the documentation on the feedback collecting for
7272
// details on how to enable these updates for your bot.
7373
UpdateTypeChosenInlineResult = "chosen_inline_result"
7474

75-
// New incoming callback query
75+
// UpdateTypeCallbackQuery is new incoming callback query
7676
UpdateTypeCallbackQuery = "callback_query"
7777

78-
// New incoming shipping query. Only for invoices with flexible price
78+
// UpdateTypeShippingQuery is new incoming shipping query. Only for invoices with flexible price
7979
UpdateTypeShippingQuery = "shipping_query"
8080

81-
// New incoming pre-checkout query. Contains full information about checkout
81+
// UpdateTypePreCheckoutQuery is new incoming pre-checkout query. Contains full information about checkout
8282
UpdateTypePreCheckoutQuery = "pre_checkout_query"
8383

84-
// New poll state. Bots receive only updates about stopped polls and polls
84+
// UpdateTypePoll is new poll state. Bots receive only updates about stopped polls and polls
8585
// which are sent by the bot
8686
UpdateTypePoll = "poll"
8787

88-
// A user changed their answer in a non-anonymous poll. Bots receive new votes
88+
// UpdateTypePollAnswer is when user changed their answer in a non-anonymous poll. Bots receive new votes
8989
// only in polls that were sent by the bot itself.
9090
UpdateTypePollAnswer = "poll_answer"
9191

92-
// The bot's chat member status was updated in a chat. For private chats, this
92+
// UpdateTypeMyChatMember is when the bot's chat member status was updated in a chat. For private chats, this
9393
// update is received only when the bot is blocked or unblocked by the user.
9494
UpdateTypeMyChatMember = "my_chat_member"
9595

96-
// The bot must be an administrator in the chat and must explicitly specify
96+
// UpdateTypeChatMember is when the bot must be an administrator in the chat and must explicitly specify
9797
// this update in the list of allowed_updates to receive these updates.
9898
UpdateTypeChatMember = "chat_member"
9999
)
@@ -125,13 +125,13 @@ type RequestFile struct {
125125

126126
// RequestFileData represents the data to be used for a file.
127127
type RequestFileData interface {
128-
// If the file needs to be uploaded.
128+
// NeedsUpload shows if the file needs to be uploaded.
129129
NeedsUpload() bool
130130

131-
// Get the file name and an `io.Reader` for the file to be uploaded. This
131+
// UploadData gets the file name and an `io.Reader` for the file to be uploaded. This
132132
// must only be called when the file needs to be uploaded.
133133
UploadData() (string, io.Reader, error)
134-
// Get the file data to send when a file does not need to be uploaded. This
134+
// SendData gets the file data to send when a file does not need to be uploaded. This
135135
// must only be called when the file does not need to be uploaded.
136136
SendData() string
137137
}

helpers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,12 +905,12 @@ func NewSetMyCommands(commands ...BotCommand) SetMyCommandsConfig {
905905
return SetMyCommandsConfig{Commands: commands}
906906
}
907907

908-
// NewSetMyCommands allows you to set the registered commands for a given scope.
908+
// NewSetMyCommandsWithScope allows you to set the registered commands for a given scope.
909909
func NewSetMyCommandsWithScope(scope BotCommandScope, commands ...BotCommand) SetMyCommandsConfig {
910910
return SetMyCommandsConfig{Commands: commands, Scope: &scope}
911911
}
912912

913-
// NewSetMyCommands allows you to set the registered commands for a given scope
913+
// NewSetMyCommandsWithScopeAndLanguage allows you to set the registered commands for a given scope
914914
// and language code.
915915
func NewSetMyCommandsWithScopeAndLanguage(scope BotCommandScope, languageCode string, commands ...BotCommand) SetMyCommandsConfig {
916916
return SetMyCommandsConfig{Commands: commands, Scope: &scope, LanguageCode: languageCode}
@@ -921,13 +921,13 @@ func NewDeleteMyCommands() DeleteMyCommandsConfig {
921921
return DeleteMyCommandsConfig{}
922922
}
923923

924-
// NewDeleteMyCommands allows you to delete the registered commands for a given
924+
// NewDeleteMyCommandsWithScope allows you to delete the registered commands for a given
925925
// scope.
926926
func NewDeleteMyCommandsWithScope(scope BotCommandScope) DeleteMyCommandsConfig {
927927
return DeleteMyCommandsConfig{Scope: &scope}
928928
}
929929

930-
// NewDeleteMyCommands allows you to delete the registered commands for a given
930+
// NewDeleteMyCommandsWithScopeAndLanguage allows you to delete the registered commands for a given
931931
// scope and language code.
932932
func NewDeleteMyCommandsWithScopeAndLanguage(scope BotCommandScope, languageCode string) DeleteMyCommandsConfig {
933933
return DeleteMyCommandsConfig{Scope: &scope, LanguageCode: languageCode}

0 commit comments

Comments
 (0)