#NEWLINE# def __init__( self , client , message ) : #NEWLINE# #INDENT# self . _client = client #NEWLINE# self . _message = message #NEWLINE# self . id = message . id #NEWLINE# self . text = message . text #NEWLINE# self . hasContent = message . hasContent #NEWLINE# self . contentType = message . contentType #NEWLINE# self . contentPreview = message . contentPreview #NEWLINE# self . contentMetadata = message . contentMetadata #NEWLINE# self . sender = client . getContactOrRoomOrGroupById ( message . _from ) #NEWLINE# self . receiver = client . getContactOrRoomOrGroupById ( message . to ) #NEWLINE# self . toType = message . toType #NEWLINE# self . createdTime = datetime . fromtimestamp ( ( message . createdTime / 1000 ) )