def handle_postback(event): """Method that process postback data""" data = ModuleData(event, data_type=DataType.POSTBACK) feedback_queue.put((DataPriority.MESSAGE, data))
def handle_file_message(event): """Method that process file massage""" data = ModuleData(event, data_type=DataType.MESSAGE_FILE) feedback_queue.put((DataPriority.MESSAGE, data))
def handle_sticker_message(event): """Method that process sticker massage""" data = ModuleData(event, data_type=DataType.MESSAGE_STICKER) feedback_queue.put((DataPriority.MESSAGE, data))
def handle_location_message(event): """Method that process location massage""" data = ModuleData(event, data_type=DataType.MESSAGE_LOCATION) feedback_queue.put((DataPriority.MESSAGE, data))
def handle_audio_message(event): """Method that process audio massage""" data = ModuleData(event, data_type=DataType.MESSAGE_AUDIO) feedback_queue.put((DataPriority.MESSAGE, data))
def handle_text_message(event): """Method that process text massage""" data = ModuleData(event, data_type=DataType.MESSAGE_TEXT) feedback_queue.put((DataPriority.MESSAGE, data))