Add new chat methods for Bot API 2.1.

This commit is contained in:
Syfaro 2016-05-22 10:16:28 -05:00
parent 3ed6b6ac16
commit 217764ba45
5 changed files with 164 additions and 5 deletions

View file

@ -51,6 +51,10 @@ func main() {
updates, err := bot.GetUpdatesChan(u)
for update := range updates {
if update.Message == nil {
continue
}
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)