Answer the question
In order to leave comments, you need to log in
How can I make the left constant be a list?
Here is the usual code that is executed:
But if you put it like this:
Then the code will give an error.
But. If you leave the first option, then, let's say the user sent a message "thank you", the bot will not respond, because. does not know such a command.
if message.text.upper() in config.lst_4
if config.lst_4 in message.text.upper()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question