Telegram. bot, the user response if a message contains the word?

Trying to make telegram the bot, the bot need to send the sticker to the user if the message contains the word, and not to meet fully how to implement it?
Use pyTelegramBotAPI.
Example, a user sends a message, and if at least some part of the message is the word "he" in sent chat sticker. At the moment, sends a sticker, if the user message consists only of Dima. Please help to understand. Can't find the answer anywhere.

import telebot
import config
from telebot import types

bot = telebot.TeleBot(config.TOKEN)

def welcome(message):
bot.send_message(, 'Hello')

def lalala(message):
if message.text.lower() == 'Dima' or message.text.lower() == 'Dmitriy' or message.text.lower() == 'Dimon':
sti = open('stickers/sticker.webp', 'rb')
bot.send_sticker(, sti)

April 7th 20 at 15:30
2 answers
April 7th 20 at 15:32
names = ['Dima', 'Dmitry', 'damoooooon']
for name in names:
 if name in message.text.lower(): 
 # your code
Thank you so much. - Doyle.Bli commented on April 7th 20 at 15:35
April 7th 20 at 15:34
Tag code should be used(and know the basics of python)
@bot.message_handler(func=lambda message: 'Dima' in the message.text.lower(), content_types=['text'])
def lalala(message):
 sti = open('stickers/sticker.webp', 'rb')
 bot.send_sticker(, sti)

Find more questions by tags BotsPythonTelegram