V
V
VKR2282020-09-05 04:41:59
Python
VKR228, 2020-09-05 04:41:59

How to make if message.text == "text here", "and text here"?

How to make if message.text == "text here", "text here": ? That is, one has 2 options for what the text can be, after the user's text is equal to any of my options, further code action occurs. What I wrote above is not a working option

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
U235U235, 2020-09-05
@VKR228

if message.text == "тут текст" or message.text =="и тут текст":

or
if message.text in ["тут текст", "и тут текст"]:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question