code: def invite_user(self, user_id):
          
          try:
              self.client.api.invite_user(self.room_id, user_id)
              return True
          except MatrixRequestError:
              return False
docs: Invite a user to this room.
  
          Returns:
              boolean: Whether invitation was sent.