Answer the question
In order to leave comments, you need to log in
How to change keyboard in aiogram (telegram bot) without answer?
I have a telegram bot and this function
@dp.message_handler(commands = ['start'], state = '*')
async def start(message: Message):
buttons = InlineKeyboardMarkup()
button = InlineKeyboardButton('callback', callback_data = 'callback')
buttons.add(button)
await message.answer('Hello world!', reply_markup = buttons)
await message.answer('Something', reply_markup = keyboard)
Answer the question
In order to leave comments, you need to log in
In any case, you need to write a message to the user. And this is not a problem for a simple reason: the user starts using the bot by pressing the Start button and sending the /start command, and the norm for telegram bots (and I think for any bots) is to send a welcome message.
Well, the usual keyboard in the presence of InlineKeyboard does not disappear anywhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question