code: def on_invite(self, data):
          
          if not self._nick:
              self._nick = self.boundjid.user
  
          # Join the room
          self.plugin["xep_0045"].joinMUC(data["from"], self._nick)
docs: Multi-User Chat invite