Exemple #1
0
def handle_postback(event):
    """Method that process postback data"""
    data = ModuleData(event, data_type=DataType.POSTBACK)
    feedback_queue.put((DataPriority.MESSAGE, data))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))