Small updates. Readme updated

This commit is contained in:
Gleb Sinyavsky 2015-11-21 17:31:59 +03:00
parent 2a5cf8652d
commit 5859ba3970
3 changed files with 19 additions and 19 deletions

View file

@ -396,7 +396,7 @@ func TestUpdatesChan(t *testing.T) {
var ucfg tgbotapi.UpdateConfig = tgbotapi.NewUpdate(0)
ucfg.Timeout = 60
_, err := bot.UpdatesChan(ucfg)
_, err := bot.GetUpdatesChan(ucfg)
if err != nil {
t.Fail()
@ -416,7 +416,7 @@ func ExampleNewBotAPI() {
u := tgbotapi.NewUpdate(0)
u.Timeout = 60
updates, err := bot.UpdatesChan(u)
updates, err := bot.GetUpdatesChan(u)
for update := range updates {
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)