def update_room_topic(self):
        """Get room topic

        Return True if the room topic changed, False if not
        """
        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
dataset/ETHPy150Open matrix-org/matrix-python-sdk/matrix_client/client.py/Room.update_room_topic/original