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

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.75k stars 887 forks source link

Callbackdata not being read anymore #645

Open Etherdrake opened 1 year ago

Etherdrake commented 1 year ago

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)?

tobigiwa commented 1 year ago

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]

zombeer commented 1 year ago

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

https://github.com/teloxide/teloxide/issues/873 - here's my issue at client repo.

obergodmar commented 11 months ago

Any update on this?