S
S
Ser_Makarov2022-04-21 19:44:13
Python
Ser_Makarov, 2022-04-21 19:44:13

Can you tell me what is wrong in the code?

I don't understand how to solve the error.

File "C:\Users\79832\Desktop\School\handlers\admin.py", line 58, in <module>
    @dp.message_handler(Text(equals='отмена', ignor_case=True), state="*")
TypeError: Text.__init__() got an unexpected keyword argument 'ignor_case'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TheMade, 2022-04-22
@TheMade

The "ignor_case" argument does not exist.
Read the documentation for this function.
I can assume that the argument is called not "ignor_case" but "ignore_case", but this is not accurate!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question