python - 如何在单击 InlineKeyboard 中的按钮时更改变量的 value - Telegram Pyrogram

我正在使用 pyrogram!

我想做的是——

call = 'SOS, help me!'

def test(client, message):
message.reply_text(text="This is a InlineKeyboardMarkup example", reply_markup=InlineKeyboardMarkup([InlineKeyboardButton(
                            "Button",
                            call='No'
                        )])

我希望在单击按钮后,调用变量的 value 从“SOS,救救我!”对“不”

怎么做?

相似文章

随机推荐

最新文章