code: def update_room_topic(self):
          
          try:
              response = self.client.api.get_room_topic(self.room_id)
              if "topic" in response and response["topic"] != self.topic:
                  self.topic = response["topic"]
                  return True
              else:
                  return False
          except MatrixRequestError:
              return False
docs: Updates self.topic and returns True if room topic has changed.