def unsubscribe_from_chat(
        self,
        subscriber: Callable[[events.ChatMessageWasReceived], None],
    ) -> None:
        """
        Not thread-safe.

        """
        self._chat_subscribers.remove(subscriber)