teleirc
teleirc copied to clipboard
teleirc failing when image uploads to imgur
when in telegram someone posts image or group of images teleirc failing. I already tried to use my own API key but no result.
may be imgur or telegram api updated?
INFO: 2024/06/28 16:00:03 Current TeleIRC version:
INFO: 2024/06/28 16:00:03 Creating new Telegram bot client...
INFO: 2024/06/28 16:00:03 Creating new IRC bot client...
INFO: 2024/06/28 16:00:03 Starting up Telegram bot...
INFO: 2024/06/28 16:00:03 Starting up IRC bot...
INFO: 2024/06/28 16:00:04 Authorized on account IRCTelegramRetranslatorBot
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0x6e8f63]
goroutine 35 [running]:
github.com/ritlug/teleirc/internal/handlers/telegram.getImgurLink(0xc00023e000, 0xc00065e0e0, 0x64, 0x0, 0x0)
/opt/teleirc/internal/handlers/telegram/imgur.go:101 +0x5a3
github.com/ritlug/teleirc/internal/handlers/telegram.uploadImage(0xc00023e000, 0x3a44274a, 0xc000128b40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/teleirc/internal/handlers/telegram/helpers.go:68 +0xe5
github.com/ritlug/teleirc/internal/handlers/telegram.photoHandler(0xc00023e000, 0x3a44274a, 0xc000128b40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/opt/teleirc/internal/handlers/telegram/handler.go:162 +0x65
github.com/ritlug/teleirc/internal/handlers/telegram.updateHandler(0xc00023e000, 0xc000274a20)
/opt/teleirc/internal/handlers/telegram/handler.go:45 +0x378
github.com/ritlug/teleirc/internal/handlers/telegram.(*Client).StartBot(0xc00023e000, 0xc0002a0000, 0xc00023e040)
/opt/teleirc/internal/handlers/telegram/telegram.go:78 +0x245
created by main.main
/opt/teleirc/cmd/teleirc.go:53 +0x58d