Created
March 26, 2020 20:54
-
-
Save pattanunNP/5a9d63653b68c9cc8f44d28280b799ff 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 textprocessing import find_distance | |
@handler.add(MessageEvent, message=TextMessage) | |
def handle_message(event): | |
input_msg=event.message.text | |
reply_msg = find_distance(input_msg) | |
line_bot_api.reply_message( | |
event.reply_token, | |
TextSendMessage(text=reply_msg)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment