Ejemplo n.º 1
0
def handle_postback(event):
    """Method that process postback data"""
    data = ModuleData(event, data_type=DataType.POSTBACK)
    feedback_queue.put((DataPriority.MESSAGE, data))
Ejemplo n.º 2
0
def handle_file_message(event):
    """Method that process file massage"""
    data = ModuleData(event, data_type=DataType.MESSAGE_FILE)
    feedback_queue.put((DataPriority.MESSAGE, data))
Ejemplo n.º 3
0
def handle_sticker_message(event):
    """Method that process sticker massage"""
    data = ModuleData(event, data_type=DataType.MESSAGE_STICKER)
    feedback_queue.put((DataPriority.MESSAGE, data))
Ejemplo n.º 4
0
def handle_location_message(event):
    """Method that process location massage"""
    data = ModuleData(event, data_type=DataType.MESSAGE_LOCATION)
    feedback_queue.put((DataPriority.MESSAGE, data))
Ejemplo n.º 5
0
def handle_audio_message(event):
    """Method that process audio massage"""
    data = ModuleData(event, data_type=DataType.MESSAGE_AUDIO)
    feedback_queue.put((DataPriority.MESSAGE, data))
Ejemplo n.º 6
0
def handle_text_message(event):
    """Method that process text massage"""
    data = ModuleData(event, data_type=DataType.MESSAGE_TEXT)
    feedback_queue.put((DataPriority.MESSAGE, data))