InvalidCallbackData

class telegram.ext.InvalidCallbackData(callback_data=None)[source]

Bases: telegram.error.TelegramError

Raised when the received callback data has been tampered with or deleted from cache.

New in version 13.6.

Parameters:

callback_data (int, optional) – The button data of which the callback data could not be found.

callback_data[source]

Optional. The button data of which the callback data could not be found.

Type:

int

__reduce__()[source]

Defines how to serialize the exception for pickle. See object.__reduce__() for more info.

Returns:

tuple