# 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)
...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Wintreist/TelegramBotsCallbackData",
"name": "TelegramBotsCallbackData",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "Telegram Callback",
"author": "Wintreist",
"author_email": "wintreist1811@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/76/36/f9ec4f56855ad236cd01192610570ac792d52f0dfb2b0527c9637bc442fc/TelegramBotsCallbackData-1.0.2.tar.gz",
"platform": null,
"description": "# TelegramBotsCallbackData\r\n\r\n[EN]This library was created to facilitate working with callback data from inline buttons in Telegram.\r\n\r\n[RU]\u0420\u00ad\u0421\u201a\u0420\u00b0 \u0420\u00b1\u0420\u0451\u0420\u00b1\u0420\u00bb\u0420\u0451\u0420\u0455\u0421\u201a\u0420\u00b5\u0420\u0454\u0420\u00b0 \u0420\u00b1\u0421\u2039\u0420\u00bb\u0420\u00b0 \u0421\u0403\u0420\u0455\u0420\u00b7\u0420\u0491\u0420\u00b0\u0420\u0405\u0420\u00b0 \u0420\u0491\u0420\u00bb\u0421\u040f \u0420\u0455\u0420\u00b1\u0420\u00bb\u0420\u00b5\u0420\u0456\u0421\u2021\u0420\u00b5\u0420\u0405\u0420\u0451\u0421\u040f \u0421\u0402\u0420\u00b0\u0420\u00b1\u0420\u0455\u0421\u201a\u0421\u2039 \u0421\u0403 callback data \u0421\u0453 inline \u0420\u0454\u0420\u0405\u0420\u0455\u0420\u0457\u0420\u0455\u0420\u0454 \u0420\u0406 \u0420\u045e\u0420\u00b5\u0420\u00bb\u0420\u00b5\u0420\u0456\u0421\u0402\u0420\u00b0\u0420\u0458\u0420\u0458\u0420\u00b5.\r\n\r\n# How its work? / \u0420\u0459\u0420\u00b0\u0420\u0454 \u0421\u040c\u0421\u201a\u0420\u0455 \u0421\u0402\u0420\u00b0\u0420\u00b1\u0420\u0455\u0421\u201a\u0420\u00b0\u0420\u00b5\u0421\u201a?\r\n\r\n```python\r\nfrom TelegramBotsCallbackData import CallbackData\r\n\r\ncallback_data = CallbackData()\r\n\r\n# Create Callback Data\r\n...\r\nbutton = InlineKeyboardButton(\r\n text=\"Text\",\r\n callback_data=callback_data.new({\r\n # Any object that can be pickled\r\n }))\r\n...\r\n\r\n# Restore Callback Data\r\n...\r\ndata = callback_data.restore(CallbackQuery.data)\r\n...\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "This is a library for storing a lot of information in callback data",
"version": "1.0.2",
"project_urls": {
"GitHub": "https://github.com/Wintreist",
"Homepage": "https://github.com/Wintreist/TelegramBotsCallbackData"
},
"split_keywords": [
"telegram",
"callback"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7636f9ec4f56855ad236cd01192610570ac792d52f0dfb2b0527c9637bc442fc",
"md5": "7a5a0195c3e040fdbbe2a656bf164a24",
"sha256": "9b1530bbc5526dcd52fb0dc7eebd4931eef785267dbc5b846e2a807cb731116c"
},
"downloads": -1,
"filename": "TelegramBotsCallbackData-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "7a5a0195c3e040fdbbe2a656bf164a24",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2778,
"upload_time": "2023-10-18T06:17:28",
"upload_time_iso_8601": "2023-10-18T06:17:28.190720Z",
"url": "https://files.pythonhosted.org/packages/76/36/f9ec4f56855ad236cd01192610570ac792d52f0dfb2b0527c9637bc442fc/TelegramBotsCallbackData-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-18 06:17:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Wintreist",
"github_project": "TelegramBotsCallbackData",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "telegrambotscallbackdata"
}