def send_auto(self, payload, tries=1, timeout=60):
        '''
        Detect the encryption type based on the payload
        '''
        enc = payload.get('enc', 'clear')
        load = payload.get('load', {})
        return self.send(enc, load, tries, timeout)
def send_auto ( self , payload , tries = 1 , timeout = 60 ) : enc = payload . get ( 'enc' , 'clear' ) load = payload . get ( 'load' , { } ) return self . send ( enc , load , tries , timeout )
Detect the encryption type based on the payload