go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API

Home Page:https://go-telegram-bot-api.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Callbackdata not being read anymore

Etherdrake opened this issue · comments

Some of my bots suddenly stopped working, apparently update.CallbackData now is not being read properly anymore. If I: fmt.Println(update.CallbackData()) I get nothing.

Furthermore:

if len(update.CallbackData()) == 0 { fmt.Println("Nothing received") } '

Prints 'Nothing received' although there actually is a string under the callback_data field.

Have I missed a change to the Telegram API that this function now seems broken (and should be corrected)?

Plus now, it panic as a memory address error, whenever i click the an inline button with callbackdata
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x650cc3]

commented

+1
Also having problems with reading callback data, specifically received from messages older than certain period of time. Like several hours or so.

teloxide/teloxide#873 - here's my issue at client repo.

Any update on this?