def handle_message(event): print("*****Input Message In handle_message*****") print(event) inputMessage = event.message.text ms = Message(inputMessage) replyMessage = ms.getOutput() message = TextSendMessage(text=replyMessage) line_bot_api.reply_message(event.reply_token, message)
def testGetOutput(self): message = Message(self.language) self.assertEqual( "I'm currently TA of object-oriented programming course, using C++ language, of Taipei Tech. ", message.getOutput())