You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/notification/telegram.rs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ impl Notifier for TelegramNotifier {
234
234
235
235
// Send the notification using the inner Webhook notifier
236
236
self.inner
237
-
// TODO: The `message` parameter is required by the Notifier trait for generic
237
+
// TODO: The `message` parameter is required by the Notifier trait for generic
238
238
// webhook signing, but it's duplicated in this specific payload
239
239
.notify_with_payload(message, payload_fields)
240
240
.await
@@ -383,7 +383,9 @@ mod tests {
383
383
fntest_escape_markdown_v2(){
384
384
// Test for real life examples
385
385
assert_eq!(
386
-
TelegramNotifier::escape_markdown_v2("*Transaction Alert*\n*Network:* Base Sepolia\n*From:* 0x00001\n*To:* 0x00002\n*Transaction:* [View on Blockscout](https://base-sepolia.blockscout.com/tx/0x00003)"),
386
+
TelegramNotifier::escape_markdown_v2(
387
+
"*Transaction Alert*\n*Network:* Base Sepolia\n*From:* 0x00001\n*To:* 0x00002\n*Transaction:* [View on Blockscout](https://base-sepolia.blockscout.com/tx/0x00003)"
388
+
),
387
389
"*Transaction Alert*\n*Network:* Base Sepolia\n*From:* 0x00001\n*To:* 0x00002\n*Transaction:* [View on Blockscout](https://base\\-sepolia\\.blockscout\\.com/tx/0x00003)"
0 commit comments