Fix typos and misspells

pull/241/head
Viktor Oreshkin 4 years ago
parent 11b34b3857
commit a770d6d951

@ -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:
//
@ -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) {
@ -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:
//
@ -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.
@ -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(),

@ -138,7 +138,7 @@ 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.
@ -146,7 +146,7 @@ type Message struct {
// 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.
@ -154,7 +154,7 @@ type Message struct {
// 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.
@ -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.
@ -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.

@ -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

Loading…
Cancel
Save