• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sharing/notification/notificationservice.php
  • Класс: BitrixCalendarSharingNotificationNotificationService
  • Вызов: NotificationService::sendCrmSharingAutoAccepted
public function sendCrmSharingAutoAccepted(string $to): bool
{
	$manager = SharingHelper::getOwnerInfo($this->crmDealLink->getOwnerId());
	$placeholders = [
		// for whatsapp
		'MANAGER_NAME' => SharingHelper::getPersonFullNameLoc($manager['name'], $manager['lastName']),
		'DATE' => SharingHelper::formatDate($this->event->getStart()),
		'EVENT_URL' => SharingHelper::getShortUrl($this->eventLink->getUrl()),

		// for sms
		'DATE_SHORT' => SharingHelper::formatDateShort($this->event->getStart()),
	];

	return $this->sendMessage($to, self::TEMPLATE_CRM_SHARING_AUTO_ACCEPTED, $placeholders);
}