Compare commits

..

1 Commits

Author SHA1 Message Date
Terekhin Alexandr 6755f00142 App from telebot 4 years ago
  1. 3
      main.go

@ -3,6 +3,7 @@ package main
import (
"log"
"os"
"time"
tb "gopkg.in/tucnak/telebot.v2"
)
@ -12,7 +13,6 @@ func main() {
port = os.Getenv("PORT")
publicURL = os.Getenv("PUBLIC_URL") // you must add it to your config vars
token = os.Getenv("TOKEN") // you must add it to your config vars
apiURL = os.Getenv("API_URL")
)
webhook := &tb.Webhook{
@ -23,7 +23,6 @@ func main() {
pref := tb.Settings{
Token: token,
Poller: webhook,
URL: apiURL,
}
b, err := tb.NewBot(pref)

Loading…
Cancel
Save