← 返回首页
InvalidCallbackData - python-telegram-bot v22.8 Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Back to top

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.

Added 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

Made with Sphinx and @pradyunsg's Furo