Make example work again (fix #140)

pull/168/head
Viktor Oreshkin 6 years ago
parent 2adea7c8be
commit 9d9ca9ea66

@ -2,6 +2,8 @@
//
// Example:
//
// package main
//
// import (
// "time"
// tb "gopkg.in/tucnak/telebot.v2"
@ -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()
// }

Loading…
Cancel
Save