Skip to content

Commit

Permalink
Fix typos and misspells
Browse files Browse the repository at this point in the history
  • Loading branch information
stek29 committed Dec 25, 2019
1 parent 11b34b3 commit a770d6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (b *Bot) Stop() {
// some Sendable (or string!) and optional send options.
//
// Note: since most arguments are of type interface{}, but have pointer
// method recievers, make sure to pass them by-pointer, NOT by-value.
// method receivers, make sure to pass them by-pointer, NOT by-value.
//
// What is a send option exactly? It can be one of the following types:
//
Expand Down Expand Up @@ -744,7 +744,7 @@ func (b *Bot) EditReplyMarkup(message Editable, markup *ReplyMarkup) (*Message,
return extractMsgResponse(respJSON)
}

// EditCaption used to edit already sent photo caption with known recepient and message id.
// EditCaption used to edit already sent photo caption with known recipient and message id.
//
// On success, returns edited message object
func (b *Bot) EditCaption(message Editable, caption string, options ...interface{}) (*Message, error) {
Expand All @@ -771,7 +771,7 @@ func (b *Bot) EditCaption(message Editable, caption string, options ...interface
return extractMsgResponse(respJSON)
}

// EditMedia used to edit already sent media with known recepient and message id.
// EditMedia used to edit already sent media with known recipient and message id.
//
// Use cases:
//
Expand Down Expand Up @@ -937,7 +937,7 @@ func (b *Bot) Delete(message Editable) error {
// Chat action is a status message that recipient would see where
// you typically see "Harry is typing" status message. The only
// difference is that bots' chat actions live only for 5 seconds
// and die just once the client recieves a message from the bot.
// and die just once the client receives a message from the bot.
//
// Currently, Telegram supports only a narrow range of possible
// actions, these are aligned as constants of this package.
Expand Down Expand Up @@ -1150,7 +1150,7 @@ func (b *Bot) GetInviteLink(chat *Chat) (string, error) {
return resp.Result, nil
}

// SetChatTitle should be used to update group title.
// SetGroupTitle should be used to update group title.
func (b *Bot) SetGroupTitle(chat *Chat, newTitle string) error {
params := map[string]string{
"chat_id": chat.Recipient(),
Expand Down
10 changes: 5 additions & 5 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,23 @@ type Message struct {

// For a service message, true if group has been created.
//
// You would recieve such a message if you are one of
// You would receive such a message if you are one of
// initial group chat members.
//
// Sender would lead to creator of the chat.
GroupCreated bool `json:"group_chat_created"`

// For a service message, true if super group has been created.
//
// You would recieve such a message if you are one of
// You would receive such a message if you are one of
// initial group chat members.
//
// Sender would lead to creator of the chat.
SuperGroupCreated bool `json:"supergroup_chat_created"`

// For a service message, true if channel has been created.
//
// You would recieve such a message if you are one of
// You would receive such a message if you are one of
// initial channel administrators.
//
// Sender would lead to creator of the chat.
Expand All @@ -163,7 +163,7 @@ type Message struct {
// For a service message, the destination (super group) you
// migrated to.
//
// You would recieve such a message when your chat has migrated
// You would receive such a message when your chat has migrated
// to a super group.
//
// Sender would lead to creator of the migration.
Expand All @@ -172,7 +172,7 @@ type Message struct {
// For a service message, the Origin (normal group) you migrated
// from.
//
// You would recieve such a message when your chat has migrated
// You would receive such a message when your chat has migrated
// to a super group.
//
// Sender would lead to creator of the migration.
Expand Down
4 changes: 2 additions & 2 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ type WebhookEndpoint struct {
}

// A Webhook configures the poller for webhooks. It opens a port on the given
// listen adress. If TLS is filled, the listener will use the key and cert to open
// listen address. If TLS is filled, the listener will use the key and cert to open
// a secure port. Otherwise it will use plain HTTP.
// If you have a loadbalancer ore other infrastructure in front of your service, you
// must fill the Endpoint structure so this poller will send this data to telegram. If
// you leave these values empty, your local adress will be sent to telegram which is mostly
// you leave these values empty, your local address will be sent to telegram which is mostly
// not what you want (at least while developing). If you have a single instance of your
// bot you should consider to use the LongPoller instead of a WebHook.
// You can also leave the Listen field empty. In this case it is up to the caller to
Expand Down

0 comments on commit a770d6d

Please sign in to comment.