def get_channel_by_id(self, channel_id: bytes) -> Optional[Channel]:
    return self._channels.get(channel_id, None)
def get_channel_by_id(self, channel_id: bytes) -> Optional[Channel]:
    return self._channels.get(channel_id, None)