解决方法:

# bind data to uuid
import uuid
my_data = long_json_string
my_uuid = uuid.uuid4()
user_data[my_uuid] = my_data
InlineKeyboardButton(text="text", callback_data=my_uuid)


# get data on handler
def callback(bot, update, user_data):
  data = update.callback_query.data
  data = user_data[data]

以上

相关文章:

  • 2021-09-17
  • 2021-08-19
  • 2021-06-29
  • 2022-12-23
  • 2021-12-20
  • 2021-06-16
  • 2021-05-08
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-01
相关资源
相似解决方案