Skip to content

Commit

Permalink
Make example work again (fix tucnak#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
stek29 committed Oct 26, 2018
1 parent 2adea7c commit 9d9ca9e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions telebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//
// Example:
//
// package main
//
// import (
// "time"
// tb "gopkg.in/tucnak/telebot.v2"
Expand All @@ -10,16 +12,16 @@
// func main() {
// b, err := tb.NewBot(tb.Settings{
// Token: "TOKEN_HERE",
// Poller: &tb.LongPoller{10 * time.Second},
// Poller: &tb.LongPoller{Timeout: 10 * time.Second},
// })
//
// if err != nil {
// return
// }
//
// b.Handle(tb.OnMessage, func(m *tb.Message) {
// b.Handle(tb.OnText, func(m *tb.Message) {
// b.Send(m.Sender, "hello world")
// }
// })
//
// b.Start()
// }
Expand Down

0 comments on commit 9d9ca9e

Please sign in to comment.