Answer the question
In order to leave comments, you need to log in
How can I make the bot not see the difference between uppercase and lowercase letters when reading a message?
There is a code
bot = telebot.TeleBot(config.TOKEN)
a = ["Привет", "привет", "Hello", "hello"]
@bot.message_handler(content_types=["text"])
def name_of_function(message: Message):
if message.text in a:
bot.reply_to(message, "Здравствуйте!")
return
a = ["Привет", "привет", "Hello", "hello"]
a = ["привет", "hello"]
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