65 if ($paramsResult->isSuccess())
67 $params = $paramsResult->getResult();
71 return $result->addErrors($paramsResult->getErrors());
74 $chat =
new static($params);
75 $chat->setParentChatId($params[
'PARENT_ID']);
76 if (!$chat->getParent())
81 ->setExtranet($chat->getParent()->getExtranet())
82 ->setManageUsersAdd($chat->getParent()->getManageUsersAdd())
83 ->setManageUsersDelete($chat->getParent()->getManageUsersDelete())
84 ->setManageUI($chat->getParent()->getManageUI())
87 if (!$chat->getParentMessageId())
93 if (!$chat->getChatId())
99 'CHAT_ID' => $chat->getChatId(),