@@ -52,48 +52,48 @@ const (
52
52
53
53
// Constant values for update types
54
54
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.
56
56
UpdateTypeMessage = "message"
57
57
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
59
59
UpdateTypeEditedMessage = "edited_message"
60
60
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.
62
62
UpdateTypeChannelPost = "channel_post"
63
63
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
65
65
UpdateTypeEditedChannelPost = "edited_channel_post"
66
66
67
- // New incoming inline query
67
+ // UpdateTypeInlineQuery is new incoming inline query
68
68
UpdateTypeInlineQuery = "inline_query"
69
69
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
71
71
// chat partner. Please see the documentation on the feedback collecting for
72
72
// details on how to enable these updates for your bot.
73
73
UpdateTypeChosenInlineResult = "chosen_inline_result"
74
74
75
- // New incoming callback query
75
+ // UpdateTypeCallbackQuery is new incoming callback query
76
76
UpdateTypeCallbackQuery = "callback_query"
77
77
78
- // New incoming shipping query. Only for invoices with flexible price
78
+ // UpdateTypeShippingQuery is new incoming shipping query. Only for invoices with flexible price
79
79
UpdateTypeShippingQuery = "shipping_query"
80
80
81
- // New incoming pre-checkout query. Contains full information about checkout
81
+ // UpdateTypePreCheckoutQuery is new incoming pre-checkout query. Contains full information about checkout
82
82
UpdateTypePreCheckoutQuery = "pre_checkout_query"
83
83
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
85
85
// which are sent by the bot
86
86
UpdateTypePoll = "poll"
87
87
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
89
89
// only in polls that were sent by the bot itself.
90
90
UpdateTypePollAnswer = "poll_answer"
91
91
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
93
93
// update is received only when the bot is blocked or unblocked by the user.
94
94
UpdateTypeMyChatMember = "my_chat_member"
95
95
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
97
97
// this update in the list of allowed_updates to receive these updates.
98
98
UpdateTypeChatMember = "chat_member"
99
99
)
@@ -125,13 +125,13 @@ type RequestFile struct {
125
125
126
126
// RequestFileData represents the data to be used for a file.
127
127
type RequestFileData interface {
128
- // If the file needs to be uploaded.
128
+ // NeedsUpload shows if the file needs to be uploaded.
129
129
NeedsUpload () bool
130
130
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
132
132
// must only be called when the file needs to be uploaded.
133
133
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
135
135
// must only be called when the file does not need to be uploaded.
136
136
SendData () string
137
137
}
0 commit comments