• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/order/tradingplatform/telegram/eventhandler.php
  • Класс: Bitrix\Crm\Order\TradingPlatform\Telegram\EventHandler
  • Вызов: EventHandler::sendPaymentPaidNotification
static function sendPaymentPaidNotification(Main\Event $event): void
{
	/** @var Crm\Order\Payment $payment */
	$payment = $event->getParameter('ENTITY');
	if (!$payment instanceof Crm\Order\Payment)
	{
		return;
	}

	$order = $payment->getOrder();
	if (self::isSetTelegramTradeBinding($order))
	{
		$telegram = new Crm\Integration\ImConnector\Telegram();
		$telegram->sendPaymentPaidNotification($payment);
	}
}