Skip to content

Commit 03976a5

Browse files
authored
Merge pull request #414 from omar-polo/fix-doc
Some documentation fixes
2 parents 82f9cc3 + 336b5da commit 03976a5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ type Editable interface {
280280
// MessageSig is a "message signature".
281281
//
282282
// For inline messages, return chatID = 0.
283-
MessageSig() (messageID int, chatID int64)
283+
MessageSig() (messageID string, chatID int64)
284284
}
285285
```
286286

@@ -292,11 +292,11 @@ type, provided by telebot:
292292
// a larger struct, which is often the case (you might
293293
// want to store some metadata alongside, or might not.)
294294
type StoredMessage struct {
295-
MessageID int `sql:"message_id" json:"message_id"`
296-
ChatID int64 `sql:"chat_id" json:"chat_id"`
295+
MessageID string `sql:"message_id" json:"message_id"`
296+
ChatID int64 `sql:"chat_id" json:"chat_id"`
297297
}
298298

299-
func (x StoredMessage) MessageSig() (int, int64) {
299+
func (x StoredMessage) MessageSig() (string, int64) {
300300
return x.MessageID, x.ChatID
301301
}
302302
```
@@ -338,8 +338,8 @@ func main() {
338338

339339
var (
340340
// Universal markup builders.
341-
menu = &ReplyMarkup{ResizeReplyKeyboard: true}
342-
selector = &ReplyMarkup{}
341+
menu = &tb.ReplyMarkup{ResizeReplyKeyboard: true}
342+
selector = &tb.ReplyMarkup{}
343343

344344
// Reply buttons.
345345
btnHelp = menu.Text("ℹ Help")
@@ -390,7 +390,7 @@ func main() {
390390

391391
You can use markup constructor for every type of possible buttons:
392392
```go
393-
r := &ReplyMarkup{}
393+
r := &tb.ReplyMarkup{}
394394

395395
// Reply buttons:
396396
r.Text("Hello!")

bot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ func (b *Bot) handleMedia(m *Message) bool {
611611
// some Sendable (or string!) and optional send options.
612612
//
613613
// Note: since most arguments are of type interface{}, but have pointer
614-
// method receivers, make sure to pass them by-pointer, NOT by-value.
614+
// method receivers, make sure to pass them by-pointer, NOT by-value.
615615
//
616616
// What is a send option exactly? It can be one of the following types:
617617
//

0 commit comments

Comments
 (0)