Answer the question
In order to leave comments, you need to log in
How to remove the keyboard in Telegram?
I recently moved from telebot to aiogram and ran into a problem. When using the telebot library, it was not necessary to remove the keyboard (every message had no keyboard by default), but in aiogram you need to do it manually. How can I do that?
Answer the question
In order to leave comments, you need to log in
Has the default keyboard is how? The library adds random buttons to messages or something
reply_markup=types.ReplyKeyboardRemove()
from aiogram import types
@dp.message_handler()
async def all_msg_handler(message: types.Message):
reply_text = "Ответ на сообщение..."
await message.reply(reply_text, reply_markup=types.ReplyKeyboardRemove())
просто отправь пустой reply_markup:
@dp.message_handler()
async def all_msg_handler(message: types.Message):
await ms.reply('прячем клавиатуру', reply_markup='')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question