D
D
Dima2021-06-21 21:28:07
Python
Dima, 2021-06-21 21:28:07

How to specify multiple answer options in python?

There is a line of code:

if message.text == '/БУТЫЛЬ' or '/БУТЫЛКИ':
  bot.send_message(message.chat.id, "Отлично ты справился первее меня!")


How can I get two answers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ramis, 2021-06-21
@interneterrorhehe

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