• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/PushFormat.php
  • Класс: BitrixImV2MessagePushFormat
  • Вызов: PushFormat::formatStartRecordVoice
public function formatStartRecordVoice(Chat $chat): array
{
	$userId = $this->getContext()->getUserId();
	return [
		'module_id' => 'im',
		'command' => 'startRecordVoice',
		'expiry' => 60,
		'params' => [
			'dialogId' => $chat instanceof PrivateChat ? (string)$userId : $chat->getDialogId(),
			'userId' => $userId,
			'userName' => $this->getContext()->getUser()->getName()
		],
		'extra' => BitrixImCommon::getPullExtra()
	];
}