I wanna remove ReplyKeyboardMarkup
instance and show InlineKeyboardMarkup
instead, but I just can’t do this by simple way as reply_markup=ReplyKeyboardRemove()
because there is inserting new InlineKeyboardMarkup
instance in code below
@dispatcher.message(Command("photo"))
async def send_random_photo(message: Message):
await bot.send_photo(
chat_id=message.chat.id,
photo=random_photo_url,
caption="Do you like this photo?)",
reply_markup=photo_inline_keyboard,
)
How can I remove a ReplyKeyboardMarkup
and after this add an InlineKeyboardMarkup
?