where('type', 'cash') ->where('config_value', strval($agent)) ->value('name'); $content = "Insufficient balance\n" . "Payout channel: " . ($agentName ?: $agent) . "({$agent})\n" . "Order ID: " . ($orderId ?: '-') . "\n" . "Auto payout ratio for this channel has been set to 0\n" . "Callback: " . mb_substr($message, 0, 800); try { TelegramBot::getDefault()->sendProgramNotify('Insufficient balance', $content); } catch (\Exception $exception) { Util::WriteLog('WithdrawalPayoutMonitor', 'Telegram notify failed: ' . $exception->getMessage()); } } }