Closed mendelgusmao closed 3 months ago
Check bot token
Check bot token
Seems fine! Even requesting https://api.telegram.org/bot[TOKEN]/getMe
returns OK.
Сheck token availability inside the container.
You can add printf with your token in main.go
// make telegram bot
fmt.Printf("[INFO] telegram token: %s\n", opts.Telegram.Token)
tbAPI, err := tbapi.NewBotAPI(opts.Telegram.Token)
Got it!
I was wrongly putting quotation marks in the env var in docker-compose
Thanks for pointing me the way!
Hi!
I'm having trouble setting up tg-spam in a Docker environment.
I think the first time I started the container after setting the telegram token, it kinda worked, but I decided to configure what was left, it stopped working and I have no idea why.
I'm using
docker-compose-with-server.yml
.Here's the log after
docker-compose up
Can you help me?
Thanks!