Skip to content

Commit

Permalink
Merge pull request tucnak#118 from damner/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
Ian Byrd authored Jan 17, 2018
2 parents 2025c10 + b12b5e2 commit 2cebf54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ b, _ := tb.NewBot(settings)
b.Handle(tb.OnText, func(m *tb.Message) {
// all the text messages that weren't
// captured by existing handlers
}
})

b.Handle(tb.OnPhoto, func(m *tb.Message) {
// photos only
}
})

b.Handle(tb.OnChannelPost, func (m *tb.Message) {
// channel posts only
Expand Down

0 comments on commit 2cebf54

Please sign in to comment.