public function send($message, $type = self::TYPE_POST)
    {
        if ($message instanceof ProfileInterface) {
            return $this->sendProfile($message->toData(), $type);
        }

        if ($message instanceof UserInterface) {
            return $this->sendUserApi($message);
        }

        if ($message instanceof CodeInterface) {
            return $this->sendMessengerCode($message->toData());
        }

        return $this->sendMessage($message->toData());
    }