def handle_location(event): push_text = event.message.address result = sc.get_weather_from_location(push_text) line_bot_api.reply_message( event.reply_token, TextSendMessage(text=result) )
def handle_location(event): if event.reply_token == "00000000000000000000000000000000": return text = event.message.address result = sc.get_weather_from_location(text) line_bot_api.reply_message( event.reply_token, TextSendMessage(text=result) )