0

我正在尝试使用内联键盘发送消息:

await user_bot.send_message(
                    user_id, "This is a InlineKeyboardMarkup example",
                    reply_markup=InlineKeyboardMarkup([[
                        InlineKeyboardButton('Смотреть онлайн!', url='http://f1.ikino.site/index.php?do=search', callback_data='watch online'),
                        InlineKeyboardButton('Поиск фильмов!', url='http://f1.ikino.site/index.php?do=search',
                                            callback_data='search films',)
                    ]])
                )

但它不工作!!!有谁能够帮我?消息已发送,但没有 inlineKeyboard

4

1 回答 1

0

假设您以用户身份登录,看到您的user_bot变量。

用户不能附加键盘(回复或内联)。使用普通机器人。

于 2022-01-18T11:18:18.343 回答