Readme update
parent
45c6054aa7
commit
018990922c
|
@ -18,7 +18,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"github.com/Syfaro/telegram-bot-api"
|
"github.com/zhulik/telegram-bot-api"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -35,9 +35,6 @@ func main() {
|
||||||
u.Timeout = 60
|
u.Timeout = 60
|
||||||
|
|
||||||
err = bot.UpdatesChan(u)
|
err = bot.UpdatesChan(u)
|
||||||
if err != nil {
|
|
||||||
log.Panic(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
for update := range bot.Updates {
|
for update := range bot.Updates {
|
||||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||||
|
@ -56,7 +53,7 @@ If you need to use webhooks for some reason (such as running on Google App Engin
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Syfaro/telegram-bot-api"
|
"github.com/zhulik/telegram-bot-api"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue