{
"здравствуйте иван",
"до свидания иван"
}text = msg.text
checklist = words # {'word word2', 'word word2'}
common_words = set(text.split()) & checklist
print(common_words)inchecklist = {
"здравствуйте иван",
"до свидания иван"
}
for words in checklist:
if words in text:
...any(words in text for words in checklist)