@@ -52,48 +52,48 @@ const (
5252
5353// Constant values for update types
5454const (
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.
127127type 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}
0 commit comments