code: def set_room_topic(self, topic):
          
          try:
              self.client.api.set_room_topic(self.room_id, topic)
              self.topic = topic
              return True
          except MatrixRequestError:
              return False
docs: Set room topic.
  
          Returns:
              boolean: True if the topic changed, False if not