Skip to content

Instantly share code, notes, and snippets.

@zaoldyeck
Last active October 18, 2018 07:36
Show Gist options
  • Save zaoldyeck/5fd7a2ff71abdad1c4a601f474e8dbdd to your computer and use it in GitHub Desktop.
Save zaoldyeck/5fd7a2ff71abdad1c4a601f474e8dbdd to your computer and use it in GitHub Desktop.
+from nlp.olami import Olami
def reply_handler(bot, update):
"""Reply message."""
text = update.message.text
- update.message.reply_text(text)
+ user_id = update.message.from_user.id
+ reply = Olami().nli(text, user_id)
+ update.message.reply_text(reply)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment