Advertisement
neongm

Untitled

Nov 2nd, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. def help(message):
  2. dict = {"1lab": "1 лабораторная работа",
  3. "creator":"Тот самый",
  4. "joke":"А что Вы ожидаете?"}
  5. found = False
  6. for i in dict.keys():
  7. if i in message.text:
  8. bot.send_message(message.chat.id, dict[i])
  9. found = True
  10. if not found:
  11. bot.send_message(message.chat.id, "сообщение об ошибке")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement