Skip to content

Commit 6a9b3dc

Browse files
authored
Merge pull request #598 from alexandear/fix-typos
Fix typos in comments
2 parents cc54637 + fd903f8 commit 6a9b3dc

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

configs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ func (config ShippingConfig) params() (Params, error) {
18071807
return params, err
18081808
}
18091809

1810-
// PreCheckoutConfig conatins information for answerPreCheckoutQuery request.
1810+
// PreCheckoutConfig contains information for answerPreCheckoutQuery request.
18111811
type PreCheckoutConfig struct {
18121812
PreCheckoutQueryID string // required
18131813
OK bool // required

docs/getting-started/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ things. We can add this code in right after the line enabling debug mode.
103103
}
104104
```
105105

106-
Congradulations! You've made your very own bot!
106+
Congratulations! You've made your very own bot!
107107

108108
Now that you've got some of the basics down, we can start talking about how the
109109
library is structured and more advanced features.

docs/getting-started/important-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pull request!
4343

4444
- By default, bots only get updates directly addressed to them. If you need to
4545
get all messages, you must disable privacy mode with Botfather. Bots already
46-
added to groups will need to be removed and readded for the changes to take
46+
added to groups will need to be removed and re-added for the changes to take
4747
effect. You can read more on the [Telegram Bot API docs][api-docs].
4848

4949
[api-docs]: https://core.telegram.org/bots/faq#what-messages-will-my-bot-get

docs/internals/uploading-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ mediaGroup := NewMediaGroup(ChatID, []interface{}{
7474
})
7575
```
7676

77-
A `MediaGroupConfig` stores all of the media in an array of interfaces. We now
78-
have all of the data we need to upload, but how do we figure out field names for
77+
A `MediaGroupConfig` stores all the media in an array of interfaces. We now
78+
have all the data we need to upload, but how do we figure out field names for
7979
uploads? We didn't specify `attach://unique-file` anywhere.
8080

8181
When the library goes to upload the files, it looks at the `params` and `files`

helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ func NewEditMessageText(chatID int64, messageID int, text string) EditMessageTex
567567
}
568568
}
569569

570-
// NewEditMessageTextAndMarkup allows you to edit the text and replymarkup of a message.
570+
// NewEditMessageTextAndMarkup allows you to edit the text and reply markup of a message.
571571
func NewEditMessageTextAndMarkup(chatID int64, messageID int, text string, replyMarkup InlineKeyboardMarkup) EditMessageTextConfig {
572572
return EditMessageTextConfig{
573573
BaseEdit: BaseEdit{

types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ type Chat struct {
290290
// optional
291291
Permissions *ChatPermissions `json:"permissions,omitempty"`
292292
// SlowModeDelay is for supergroups, the minimum allowed delay between
293-
// consecutive messages sent by each unpriviledged user. Returned only in
293+
// consecutive messages sent by each unprivileged user. Returned only in
294294
// getChat.
295295
//
296296
// optional

0 commit comments

Comments
 (0)