G
G
Grisha Gorokhov2021-05-08 20:17:03
Python
Grisha Gorokhov, 2021-05-08 20:17:03

How to make back button on aiogram (python)?

how do i write a return function, to the back button?

@dp.message_handler(Text(equals="PromroboQuantum"))
async def robo(message: types.Message):
keyboard = types.ReplyKeyboardMarkup(resize_keyboard=True)
buttons = ["Return"]
keyboard.add(*buttons)
await message.answer(
f"{fmt.hide_link(' https://teletype.in/@doyi/LHhyok ')}"
f"This article will tell you all about PROMOBOQUANTUM in Quantorium",
parse_mode=types.ParseMode.HTML, reply_markup= keyboard)

(if you need the whole code write)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Altry, 2021-05-08
@che4ry

@dp.message_handler(Text(equals='Вернуться'))
async def some_func(msg: types.Message):
    await msg.answer('text')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question