telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Callbackdata not being read anymore

Open Etherdrake opened this issue 2 years ago • 3 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)?

Etherdrake avatar Mar 23 '23 20:03 Etherdrake

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]

tobyweb3x avatar Apr 24 '23 02:04 tobyweb3x

+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.

zombeer avatar Apr 25 '23 14:04 zombeer

Any update on this?

obergodmar avatar Oct 15 '23 23:10 obergodmar