F
F
FILMANS2022-03-23 13:04:48
Bots
FILMANS, 2022-03-23 13:04:48

How to make Input in telegram bot on aiogram?

Hello! You need to make user input in telegram on aiogram. I used to use telebot, but then I switched to aiogram.
From the old code, I still have input, but it does not work because there are slightly different functions in aiogram.
Here is the code snippet:

@bot.message_handler(func=lambda m: True)
def messages(message):
  if 'Принято!' in message.text:
    Good(message)
  else:
    No(message)


Write how to fix this fragment so that it works on aiogram.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Python Newbie, 2022-03-23
@Levman5

Banned on google?
https://ru.stackoverflow.com/questions/1306899/How...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question