def _get_sender_information (self):

        '''
            Get information about who sent a message.

            --
            @return dict
        '''

        sender_information = {

            'id': self.response['chat']['id'],
            'first_name': self.response['from']['first_name'],
            'last_name': self.response['from']['last_name'] \
                if self.response['from'] in 'last_name' else None,
            'username': '@{u}'.format(u = self.response['from']['username']) \
                if 'username' in self.response['from'] else None
        }

        return sender_information
dataset/ETHPy150Open leonjza/hogar/hogar/ResponseHandler.py/Response._get_sender_information/swapped operands of `in`