Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def help(message):
- dict = {"1lab": "1 лабораторная работа",
- "creator":"Тот самый",
- "joke":"А что Вы ожидаете?"}
- found = False
- for i in dict.keys():
- if i in message.text:
- bot.send_message(message.chat.id, dict[i])
- found = True
- if not found:
- bot.send_message(message.chat.id, "сообщение об ошибке")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement