code: def _send(self, payload):
  
          '''
              Send
  
              Send a payload to a telegram-cli socket.
  
              --
              @param  payload:str     The Payload to send over a socket connection.
              @return bool
          '''
  
          if not self.connection:
              self._connect()
  
          # Send the payload, adding a newline to the end
          self.connection.send(payload + '\n')
  
          # Read 256 bytes off the socket and check the
          # status that returned.
          try:
              data = self.connection.recv(256)
  
          except socket.timeout, e:
              print 'Failed to read response in a timely manner to determine the status.'
              return False
  
          if data.split('\n')[1] == 'FAIL':
              print 'Failed to send payload: {payload}'.format(payload = payload)
              return False
  
          return Truf _send(self, payload):
  
          '''
              Send
  
              Send a payload to a telegram-cli socket.
  
              --
              @param  payload:str     The Payload to send over a socket connection.
              @return bool
          '''
  
          if not self.connection:
              self._connect()
  
          # Send the payload, adding a newline to the end
          self.connection.send(payload + '\n')
  
          # Read 256 bytes off the socket and check the
          # status that returned.
          try:
              data = self.connection.recv(256)
  
          except socket.timeout, e:
              print 'Failed to read response in a timely manner to determine the status.'
              return False
  
          if data.split('\n')[1] == 'FAIL':
              print 'Failed to send payload: {payload}'.format(payload = payload)
              return False
  
          return True
docs: Send
  
              Send a payload to a telegram-cli socket.
  
              --
              @param  payload:str     The Payload to send over a socket connection.
              @return bool