Compare commits

..

1 Commits

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

@ -3,7 +3,6 @@ package main
import (
"log"
"os"
"time"
tb "gopkg.in/tucnak/telebot.v2"
)
@ -13,6 +12,7 @@ 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,6 +23,7 @@ func main() {
pref := tb.Settings{
Token: token,
Poller: webhook,
URL: apiURL,
}
b, err := tb.NewBot(pref)

Loading…
Cancel
Save