Help to create InlineKeyboardMarkup #1330
-
I just want to send message with InlineKeyboardMarkup, but always catch error. I tried to create as:
and set:
But I catch error: I tried use json and dumps to encode InlineKeyboardButton and It says it is not json serializable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok. I tried use InlineKeyboardButton and InlineKeyboardMarkup from telebot and It works!!!!! |
Beta Was this translation helpful? Give feedback.
Please provide more information about your environment.
Which version of the aiogram did you use?
Why did you mention telebot when you asked for help with the aiogram?
Are you trying to use objects from one framework in another?
This is absolutely wrong, you cannot use aiogram objects in a telebot and vice versa. I don't see the `await' keyword in the first post, it looks like you are using a different library than aiogram.