def METHOD_NAME(self, message):
    msgType = message.nMsgType
    if msgType == TeamTalk5.TextMsgType.MSGTYPE_USER:
        self.onUserMessage(message.nFromUserID, message.szFromUsername, message.szMessage)
    if msgType == TeamTalk5.TextMsgType.MSGTYPE_CHANNEL:
        self.onChannelMessage(message.nFromUserID, message.szFromUsername, message.nChannelID, message.szMessage)
    if msgType == TeamTalk5.TextMsgType.MSGTYPE_BROADCAST:
        self.onBroadcastMessage(message.nFromUserID, message.szFromUsername, message.szMessage)