Browse Source

Bug fix

master
Andrey Ivanov 5 years ago
parent
commit
0b00875502
  1. 11
      inlinebotenru.go

11
inlinebotenru.go

@ -2,19 +2,16 @@ package main @@ -2,19 +2,16 @@ package main
import (
"fmt"
"os"
"strings"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
// "io/ioutil"
// "log"
// "log/syslog"
// "net/http"
// "os"
// "encoding/json"
)
func main() {
bot, err := tgbotapi.NewBotAPI("243209099:AAHe2gSekOqgxwo3-keW01TSTPtcT6Gmrzw") // create new bot
arg := os.Args[1]
bot, err := tgbotapi.NewBotAPI(arg) // create new bot
if err != nil {
fmt.Println(err)
}

Loading…
Cancel
Save