T
T
Tomorrow7722021-06-17 11:20:27
Python
Tomorrow772, 2021-06-17 11:20:27

How to make the bot accept several arguments at once?

Hello.
Guys, how to make several arguments so that the bot responds to both "cube" and "cubes" On aiogram
I tried with in but it doesn’t work like that

@dp.message_handler(commands = ['кубик'])
async def process_start_command(message: types.Message):
    await message.answer('тут типо что-то на тему кубика')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-06-17
@SoreMix

@dp.message_handler(commands = ['кубик', 'кубики'])
?

Q
qwertiss, 2021-06-17
@qwertiss

If and conditional operator OR: Well, yes, well, let's go ***

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question