@dp.message_handler( filters.CommandStart() )
async def start( message: types.Message ):
await message.answer(
'hi',
reply_markup =
InlineKeyboardMarkup(row_width=1).add(
[InlineKeyboardButton(text = "Apples", callback_data='1'),
InlineKeyboardButton(text = "Oranges", callback_data='2'),
InlineKeyboardButton(text = "Beans", callback_data='3')]
)
)
@dp.message_handler( filters.CommandStart() )
async def start( message: types.Message ):
await message.answer(
'hi',
reply_markup =
InlineKeyboardMarkup(row_width=1).add(
*[InlineKeyboardButton(text = "Apples", callback_='1'),
InlineKeyboardButton(text = "Oranges", callback_data='2'),
InlineKeyboardButton(text = "Beans", callback_data='3')]
)
)