fix: balance
This commit is contained in:
@@ -115,14 +115,19 @@ class TelegramNotifier
|
||||
string $symbol,
|
||||
string $amount,
|
||||
?string $chain = null,
|
||||
?string $balance = null,
|
||||
): void {
|
||||
$this->send(implode("\n", [
|
||||
$lines = [
|
||||
'✅ <b>Balance Inbound</b>',
|
||||
'📱 <b>Device</b>: <code>'.$this->e($deviceId).'</code>',
|
||||
'⛓ <b>Chain</b>: '.$this->e($chain ?: '—'),
|
||||
'📬 <b>Address</b>: <code>'.$this->e($address).'</code>',
|
||||
'💵 <b>Amount</b>: +'.$this->e($amount).' '.$this->e($symbol),
|
||||
]));
|
||||
];
|
||||
if ($balance !== null && trim($balance) !== '') {
|
||||
$lines[] = '💰 <b>Balance</b>: '.$this->e($balance);
|
||||
}
|
||||
$this->send(implode("\n", $lines));
|
||||
}
|
||||
|
||||
private function e(?string $value): string
|
||||
|
||||
Reference in New Issue
Block a user