T
T
Timur Burangulov2022-03-10 21:09:18
Python
Timur Burangulov, 2022-03-10 21:09:18

How can I make it so that when the 'Gallowsman' command is launched, the start game function is first launched, and after its execution, the game function is immediately launched?

@dp.message_handler(commands=['Висельница'])
async def start_game(message: types.Message):

@dp.message_handler()
async def game(message: types.Message):
    await message.answer('Введите букву')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kvason, 2022-03-10
@Kvason

@dp.message_handler(commands=['Висельница'])
async def game_start(message: types.Message):
    start_game()
    game()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question