semvec/pypi-packages huggingface dataset:
TelegramBotsCallbackData 1.0.2
This is a library for storing a lot of information in callback data
Requires Python: >=3.6
Keywords: Telegram Callback

# TelegramBotsCallbackData

[EN]This library was created to facilitate working with callback data from inline buttons in Telegram.

[RU]Р­С‚Р° Р±РёР±Р»РёРѕС‚РµРєР° Р±С‹Р»Р° СЃРѕР·РґР°РЅР° РґР»СЏ РѕР±Р»РµРіС‡РµРЅРёСЏ СЂР°Р±РѕС‚С‹ СЃ callback data Сѓ inline РєРЅРѕРїРѕРє РІ РўРµР»РµРіСЂР°РјРјРµ.

# How its work? / РљР°Рє СЌС‚Рѕ СЂР°Р±РѕС‚Р°РµС‚?

```python
from TelegramBotsCallbackData import CallbackData

callback_data = CallbackData()

# Create Callback Data
...
button = InlineKeyboardButton(
  text="Text",
  callback_data=callback_data.new({
    # Any object that can be pickled
  }))
...

# Restore Callback Data
...
data = callback_data.restore(CallbackQuery.data)
...
```