Skip to content

Wintreist/TelegramBotsCallbackData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TelegramBotsCallbackData

[EN]This library was created to facilitate working with callback data from inline buttons in Telegram.

[RU]Эта библиотека была создана для облегчения работы с callback data у inline кнопок в Телеграмме.

How its work? / Как это работает?

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

About

This is a library for storing a lot of information in callback data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages