Last active
October 18, 2018 07:36
-
-
Save zaoldyeck/5fd7a2ff71abdad1c4a601f474e8dbdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+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