Skip to content

Instantly share code, notes, and snippets.

@pattanunNP
Created March 26, 2020 20:54
Show Gist options
  • Save pattanunNP/5a9d63653b68c9cc8f44d28280b799ff to your computer and use it in GitHub Desktop.
Save pattanunNP/5a9d63653b68c9cc8f44d28280b799ff to your computer and use it in GitHub Desktop.
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