(self, user, message)
Sends some message to a desired user, using a User object and a string message.
Sends some message to a desired user, using a User object and a string message.
Sends some message to a desired user using a User object and a string message .
def message_user(self, user, message):
        # type: (User, str) -> None
        '''
        Sends some message to a desired user, using a User object and a string message.
        '''
        channel = self._api_call('im.open', user=user['id'])['channel']['id']
        self.send_message(channel, message)
def message_user ( self , user , message ) : # type: (User, str) -> None channel = self . _api_call ( 'im.open' , user = user [ 'id' ] ) [ 'channel' ] [ 'id' ] self . send_message ( channel , message )