Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

Merge branch 'main' into feat/dashboard-multi-group-send

Yudhi Armyndharisf0990929cc5f
diff --cc CHANGELOG.md
index 06233fe34,29e66fdf2..5361d7ee9
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -15,9 -15,9 +15,10 @@@ and this project adheres to [Semantic V
- The dashboard Chats thread shows a quote preview and call detail on history-loaded messages, which previously rendered on live messages only. Thanks @gabrielmmoraes1999.
- The dashboard Chats thread renders inbound Baileys prompt `buttons` and taps them through `POST .../messages/click-button`; prompt choices are also kept in persisted message `metadata` so they survive reload for rendering. Clicking still requires the prompt to be in the engine store, so an evicted prompt 404s. Thanks @gabrielmmoraes1999.
- Webhook and automation filters accept a `chatId` condition, so a webhook can be scoped to specific groups or chats instead of only to a sender ([#1634](https://github.com/rmyndharis/OpenWA/issues/1634)). Thanks @krishshah9944 and @bhavyachopra99.
+- The dashboard Message Tester sends to several groups at once: the Group dropdown is now a searchable checkbox list, and each selected group is messaged in turn ([#1650](https://github.com/rmyndharis/OpenWA/pull/1650)). Thanks @C24212.
- The dashboard Templates list has a delete button on each row, so a template can be deleted without opening it in the editor first. Like the editor's delete button, it shows only for keys that can write templates. Thanks @C24212.
- On the dashboard Chats page, Escape closes the open chat, channel or status viewer and returns to the list. It leaves the key alone while a dialog, a menu or the media viewer is open, since those handle Escape themselves. Thanks @C24212.
+ - The dashboard Message Tester's Bulk mode can attach a file or a media URL, sent as image, video, audio or document, with the message text as the caption of an image, video or document; audio carries none, so text next to audio is refused. An inline file too large to repeat for every recipient is refused before sending. Thanks @C24212.
- The dashboard sidebar tells admins when a newer OpenWA release exists, as a link to its release notes next to the version. `GET /api/infra/update-check` (ADMIN) reads the latest published GitHub release through the SSRF-guarded fetch and caches it for six hours, and a failed check never surfaces as an error; `UPDATE_CHECK_ENABLED=false` turns the request off ([#988](https://github.com/rmyndharis/OpenWA/issues/988), [#1678](https://github.com/rmyndharis/OpenWA/issues/1678)). Thanks @voosam and @OneArmArmy for the request.
### Changed
diff --cc dashboard/src/i18n/locales/ar.json
index 8bdd74e40,6d82aaace..c11955924
--- a/dashboard/src/i18n/locales/ar.json
+++ b/dashboard/src/i18n/locales/ar.json
@@@ -723,9 -717,14 +723,15 @@@
"bulkRecipientsCount": "المستلمون: {{count}}",
"bulkDelay": "التأخير بين الرسائل (مللي ثانية)",
"bulkDelayHint": "1000–60000 مللي ثانية (الافتراضي 3000)",
+ "bulkMediaKind": "إرسال كـ",
+ "bulkMediaHint": "عند إرفاق ملف تصبح الرسالة تعليقًا عليه. يُرسل الملف المختار داخل الطلب نفسه، لذا تحتاج الملفات الكبيرة لعدد كبير من المستلمين إلى رابط وسائط عام بدلًا منه.",
+ "bulkMediaTooLarge": "هذا الملف كبير جدًا لإرساله مضمَّنًا إلى {{count}} مستلمين: بهذا العدد يمكن أن يصل حجم الملف إلى {{size}} كحد أقصى. استخدم رابط وسائط عامًا بدلًا منه، أو أرسل إلى عدد أقل من المستلمين.",
+ "bulkMediaUrlInvalid": "استخدم عنوانًا كاملًا يبدأ بـ http:// أو https://، مثل https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "عند إرفاق ملف تُرسل الرسالة كتعليق عليه، والحد الأقصى للتعليق {{max}} حرفًا (الآن {{count}}).",
+ "bulkAudioNoCaption": "يُرسَل الصوت بدون تعليق، لذا لن يُرسَل هذا النص. امسح الرسالة أو اختر نوعًا آخر.",
"send": "إرسال الرسالة",
"sending": "جارٍ الإرسال...",
+ "sendingProgress": "جارٍ الإرسال {{current}}/{{total}}...",
"viewOnly": "للعرض فقط",
"responseEmpty": "أرسل رسالة لرؤية استجابة API",
"successLabel": "نجاح",
diff --cc dashboard/src/i18n/locales/de.json
index f85eef329,1aa524d46..39c90e647
--- a/dashboard/src/i18n/locales/de.json
+++ b/dashboard/src/i18n/locales/de.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "Empfänger: {{count}}",
"bulkDelay": "Verzögerung zwischen Nachrichten (ms)",
"bulkDelayHint": "1000–60000 ms (Standard: 3000)",
+ "bulkMediaKind": "Senden als",
+ "bulkMediaHint": "Mit Anhang wird die Nachricht zu dessen Bildunterschrift. Eine ausgewählte Datei wird direkt in der Anfrage mitgesendet, daher brauchen große Dateien für viele Empfänger stattdessen eine öffentliche Medien-URL.",
+ "bulkMediaTooLarge": "Diese Datei ist zu groß, um sie direkt an {{count}} Empfänger zu senden: Bei dieser Anzahl darf eine Datei höchstens {{size}} groß sein. Verwende stattdessen eine öffentliche Medien-URL oder sende an weniger Empfänger.",
+ "bulkMediaUrlInvalid": "Gib eine vollständige http://- oder https://-Adresse ein, z. B. https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Mit Anhang wird die Nachricht als dessen Bildunterschrift gesendet, die auf {{max}} Zeichen begrenzt ist (aktuell {{count}}).",
+ "bulkAudioNoCaption": "Audio wird ohne Bildunterschrift gesendet, dieser Text würde also nicht verschickt. Leere die Nachricht oder wähle eine andere Art.",
"send": "Nachricht senden",
"sending": "Wird gesendet...",
+ "sendingProgress": "Wird gesendet {{current}}/{{total}}...",
"viewOnly": "Nur ansehen",
"responseEmpty": "Sende eine Nachricht, um die API-Antwort anzuzeigen",
"successLabel": "Erfolgreich",
diff --cc dashboard/src/i18n/locales/en.json
index c0aefcdaa,f4af00fad..ca832d26e
--- a/dashboard/src/i18n/locales/en.json
+++ b/dashboard/src/i18n/locales/en.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "Recipients: {{count}}",
"bulkDelay": "Delay Between Messages (ms)",
"bulkDelayHint": "1000–60000 ms (default 3000)",
+ "bulkMediaKind": "Send as",
+ "bulkMediaHint": "With an attachment, the message becomes its caption. A picked file travels inside the request, so large files for many recipients need a public media URL instead.",
+ "bulkMediaTooLarge": "This file is too large to send inline to {{count}} recipients: at that count each file can be at most {{size}}. Use a public media URL instead, or send to fewer recipients.",
+ "bulkMediaUrlInvalid": "Use a full http:// or https:// address, like https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "With an attachment the message goes out as its caption, which is limited to {{max}} characters ({{count}} now).",
+ "bulkAudioNoCaption": "Audio goes out without a caption, so this text would not be sent. Clear the message or pick another kind.",
"send": "Send Message",
"sending": "Sending...",
+ "sendingProgress": "Sending {{current}}/{{total}}...",
"viewOnly": "View Only",
"responseEmpty": "Send a message to see the API response",
"successLabel": "Success",
diff --cc dashboard/src/i18n/locales/es.json
index 4e26cc0f4,cf7b9a481..bf7e67f78
--- a/dashboard/src/i18n/locales/es.json
+++ b/dashboard/src/i18n/locales/es.json
@@@ -659,9 -653,14 +659,15 @@@
"bulkRecipientsCount": "Destinatarios: {{count}}",
"bulkDelay": "Retraso entre mensajes (ms)",
"bulkDelayHint": "1000–60000 ms (predeterminado: 3000)",
+ "bulkMediaKind": "Enviar como",
+ "bulkMediaHint": "Con un adjunto, el mensaje pasa a ser su pie de foto. Un archivo seleccionado viaja dentro de la solicitud, así que los archivos grandes para muchos destinatarios necesitan una URL de medios pública.",
+ "bulkMediaTooLarge": "Este archivo es demasiado grande para enviarlo directamente a {{count}} destinatarios: con esa cantidad, cada archivo puede ocupar como máximo {{size}}. Usa una URL de medios pública o envía a menos destinatarios.",
+ "bulkMediaUrlInvalid": "Usa una dirección completa con http:// o https://, por ejemplo https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Con un adjunto, el mensaje se envía como su pie de foto, que está limitado a {{max}} caracteres (ahora {{count}}).",
+ "bulkAudioNoCaption": "El audio se envía sin pie, así que este texto no se enviaría. Borra el mensaje o elige otro tipo.",
"send": "Enviar mensaje",
"sending": "Enviando...",
+ "sendingProgress": "Enviando {{current}}/{{total}}...",
"viewOnly": "Solo lectura",
"responseEmpty": "Envía un mensaje para ver la respuesta de la API",
"successLabel": "Éxito",
diff --cc dashboard/src/i18n/locales/fr.json
index 84ccabf83,ff5b43f85..8c9ab84ce
--- a/dashboard/src/i18n/locales/fr.json
+++ b/dashboard/src/i18n/locales/fr.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "Destinataires : {{count}}",
"bulkDelay": "Délai entre les messages (ms)",
"bulkDelayHint": "1000–60000 ms (par défaut : 3000)",
+ "bulkMediaKind": "Envoyer en tant que",
+ "bulkMediaHint": "Avec une pièce jointe, le message devient sa légende. Un fichier sélectionné est envoyé dans la requête elle-même : pour un gros fichier et de nombreux destinataires, utilisez plutôt une URL de média publique.",
+ "bulkMediaTooLarge": "Ce fichier est trop volumineux pour être envoyé directement à {{count}} destinataires : à ce nombre, chaque fichier peut faire au maximum {{size}}. Utilisez plutôt une URL de média publique ou envoyez à moins de destinataires.",
+ "bulkMediaUrlInvalid": "Saisissez une adresse complète en http:// ou https://, par exemple https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Avec une pièce jointe, le message est envoyé comme sa légende, limitée à {{max}} caractères ({{count}} actuellement).",
+ "bulkAudioNoCaption": "L'audio est envoyé sans légende, ce texte ne serait donc pas envoyé. Videz le message ou choisissez un autre type.",
"send": "Envoyer le message",
"sending": "Envoi...",
+ "sendingProgress": "Envoi {{current}}/{{total}}...",
"viewOnly": "Lecture seule",
"responseEmpty": "Envoyez un message pour voir la réponse de l'API",
"successLabel": "Succès",
diff --cc dashboard/src/i18n/locales/he.json
index ea52fff82,9154e904a..b39ccb4d3
--- a/dashboard/src/i18n/locales/he.json
+++ b/dashboard/src/i18n/locales/he.json
@@@ -717,9 -711,14 +717,15 @@@
"bulkRecipientsCount": "נמענים: {{count}}",
"bulkDelay": "השהיה בין הודעות (אלפיות שנייה)",
"bulkDelayHint": "1000–60000 אלפיות שנייה (ברירת מחדל 3000)",
+ "bulkMediaKind": "שליחה בתור",
+ "bulkMediaHint": "כשמצורף קובץ, ההודעה הופכת לכיתוב שלו. קובץ שנבחר נשלח בתוך הבקשה עצמה, ולכן קבצים גדולים לנמענים רבים דורשים כתובת URL ציבורית למדיה במקום זאת.",
+ "bulkMediaTooLarge": "הקובץ גדול מדי לשליחה ישירה אל {{count}} נמענים: בכמות כזו כל קובץ יכול להיות בגודל של {{size}} לכל היותר. יש להשתמש בכתובת URL ציבורית למדיה במקום זאת, או לשלוח לפחות נמענים.",
+ "bulkMediaUrlInvalid": "יש להזין כתובת מלאה שמתחילה ב-http:// או ב-https://, למשל https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "כשמצורף קובץ, ההודעה נשלחת ככיתוב שלו, שמוגבל ל-{{max}} תווים (כרגע {{count}}).",
+ "bulkAudioNoCaption": "שמע נשלח ללא כיתוב, ולכן הטקסט הזה לא יישלח. נקה את ההודעה או בחר סוג אחר.",
"send": "שליחת הודעה",
"sending": "שולח...",
+ "sendingProgress": "שולח {{current}}/{{total}}...",
"viewOnly": "צפייה בלבד",
"responseEmpty": "יש לשלוח הודעה כדי לראות את תגובת ה-API",
"successLabel": "הצלחה",
diff --cc dashboard/src/i18n/locales/it.json
index 6d7c388c7,5f1c1c198..914dadb08
--- a/dashboard/src/i18n/locales/it.json
+++ b/dashboard/src/i18n/locales/it.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "Destinatari: {{count}}",
"bulkDelay": "Ritardo tra i messaggi (ms)",
"bulkDelayHint": "1000–60000 ms (predefinito: 3000)",
+ "bulkMediaKind": "Invia come",
+ "bulkMediaHint": "Con un allegato, il messaggio diventa la sua didascalia. Un file selezionato viaggia dentro la richiesta, quindi i file grandi per molti destinatari richiedono invece un URL multimediale pubblico.",
+ "bulkMediaTooLarge": "Questo file è troppo grande per inviarlo direttamente a {{count}} destinatari: con questo numero ogni file può essere al massimo di {{size}}. Usa invece un URL multimediale pubblico o invia a meno destinatari.",
+ "bulkMediaUrlInvalid": "Usa un indirizzo completo con http:// o https://, per esempio https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Con un allegato il messaggio viene inviato come sua didascalia, limitata a {{max}} caratteri (ora {{count}}).",
+ "bulkAudioNoCaption": "L'audio viene inviato senza didascalia, quindi questo testo non verrebbe inviato. Svuota il messaggio o scegli un altro tipo.",
"send": "Invia Messaggio",
"sending": "Invio in corso...",
+ "sendingProgress": "Invio in corso {{current}}/{{total}}...",
"viewOnly": "Sola Visualizzazione",
"responseEmpty": "Invia un messaggio per vedere la risposta delle API",
"successLabel": "Successo",
diff --cc dashboard/src/i18n/locales/ko.json
index 8a50af275,ad8a84eab..7cf0b6899
--- a/dashboard/src/i18n/locales/ko.json
+++ b/dashboard/src/i18n/locales/ko.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "수신자: {{count}}",
"bulkDelay": "메시지 간 지연 (ms)",
"bulkDelayHint": "1000–60000ms (기본값 3000)",
+ "bulkMediaKind": "전송 형식",
+ "bulkMediaHint": "첨부 파일이 있으면 메시지가 캡션이 됩니다. 선택한 파일은 요청 안에 담겨 전송되므로, 큰 파일을 많은 수신자에게 보내려면 공개 미디어 URL을 사용해야 합니다.",
+ "bulkMediaTooLarge": "이 파일은 {{count}}명의 수신자에게 직접 보내기에는 너무 큽니다. 이 인원수에서는 파일당 최대 {{size}}까지 가능합니다. 대신 공개 미디어 URL을 사용하거나 수신자 수를 줄이세요.",
+ "bulkMediaUrlInvalid": "http:// 또는 https://로 시작하는 전체 주소를 입력하세요. 예: https://example.com/file.pdf",
+ "bulkCaptionTooLong": "첨부 파일이 있으면 메시지가 캡션으로 전송되며, 캡션은 최대 {{max}}자입니다(현재 {{count}}자).",
+ "bulkAudioNoCaption": "오디오는 캡션 없이 전송되므로 이 텍스트는 전송되지 않습니다. 메시지를 비우거나 다른 유형을 선택하세요.",
"send": "메시지 보내기",
"sending": "보내는 중...",
+ "sendingProgress": "보내는 중 {{current}}/{{total}}...",
"viewOnly": "읽기 전용",
"responseEmpty": "메시지를 보내면 API 응답이 여기에 표시됩니다",
"successLabel": "성공",
diff --cc dashboard/src/i18n/locales/pt-BR.json
index 82b6a6401,421a3d556..27a6dab9b
--- a/dashboard/src/i18n/locales/pt-BR.json
+++ b/dashboard/src/i18n/locales/pt-BR.json
@@@ -659,9 -653,14 +659,15 @@@
"bulkRecipientsCount": "Destinatários: {{count}}",
"bulkDelay": "Intervalo entre mensagens (ms)",
"bulkDelayHint": "1000–60000 ms (padrão: 3000)",
+ "bulkMediaKind": "Enviar como",
+ "bulkMediaHint": "Com um anexo, a mensagem vira a legenda dele. Um arquivo selecionado vai dentro da própria requisição, então arquivos grandes para muitos destinatários precisam de uma URL de mídia pública.",
+ "bulkMediaTooLarge": "Este arquivo é grande demais para enviar diretamente a {{count}} destinatários: com essa quantidade, cada arquivo pode ter no máximo {{size}}. Use uma URL de mídia pública ou envie para menos destinatários.",
+ "bulkMediaUrlInvalid": "Use um endereço completo com http:// ou https://, por exemplo https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Com um anexo, a mensagem é enviada como a legenda dele, que tem limite de {{max}} caracteres (agora {{count}}).",
+ "bulkAudioNoCaption": "O áudio é enviado sem legenda, então este texto não seria enviado. Limpe a mensagem ou escolha outro tipo.",
"send": "Enviar mensagem",
"sending": "Enviando...",
+ "sendingProgress": "Enviando {{current}}/{{total}}...",
"viewOnly": "Somente leitura",
"responseEmpty": "Envie uma mensagem para ver a resposta da API",
"successLabel": "Sucesso",
diff --cc dashboard/src/i18n/locales/te.json
index c56f383d8,86b154ee2..1aab3ec4f
--- a/dashboard/src/i18n/locales/te.json
+++ b/dashboard/src/i18n/locales/te.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "గ్రహీతలు: {{count}}",
"bulkDelay": "సందేశాల మధ్య విరామం (ms)",
"bulkDelayHint": "1000–60000 ms (డిఫాల్ట్ 3000)",
+ "bulkMediaKind": "ఇలా పంపండి",
+ "bulkMediaHint": "అటాచ్‌మెంట్ ఉన్నప్పుడు సందేశం దాని క్యాప్షన్‌గా మారుతుంది. ఎంచుకున్న ఫైల్ అభ్యర్థనలోనే పంపబడుతుంది, కాబట్టి పెద్ద ఫైల్‌లను చాలా మంది గ్రహీతలకు పంపడానికి పబ్లిక్ మీడియా URL అవసరం.",
+ "bulkMediaTooLarge": "ఈ ఫైల్‌ను {{count}} గ్రహీతలకు నేరుగా పంపడానికి ఇది చాలా పెద్దది: ఈ సంఖ్యలో ఒక్కో ఫైల్ గరిష్ఠంగా {{size}} ఉండవచ్చు. దానికి బదులుగా పబ్లిక్ మీడియా URLని ఉపయోగించండి లేదా తక్కువ మంది గ్రహీతలకు పంపండి.",
+ "bulkMediaUrlInvalid": "http:// లేదా https://తో మొదలయ్యే పూర్తి చిరునామాను ఉపయోగించండి, ఉదా: https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "అటాచ్‌మెంట్ ఉన్నప్పుడు సందేశం దాని క్యాప్షన్‌గా పంపబడుతుంది, దాని పరిమితి {{max}} అక్షరాలు (ప్రస్తుతం {{count}}).",
+ "bulkAudioNoCaption": "ఆడియో శీర్షిక లేకుండా పంపబడుతుంది, కాబట్టి ఈ వచనం పంపబడదు. సందేశాన్ని ఖాళీ చేయండి లేదా వేరే రకాన్ని ఎంచుకోండి.",
"send": "సందేశం పంపు",
"sending": "పంపుతోంది...",
+ "sendingProgress": "పంపుతోంది {{current}}/{{total}}...",
"viewOnly": "చూడటానికి మాత్రమే",
"responseEmpty": "API రెస్పాన్స్ చూడటానికి ఒక సందేశాన్ని పంపండి",
"successLabel": "విజయం",
diff --cc dashboard/src/i18n/locales/tr.json
index 9e40c7b4d,c634cbfd5..50347086a
--- a/dashboard/src/i18n/locales/tr.json
+++ b/dashboard/src/i18n/locales/tr.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "Alıcılar: {{count}}",
"bulkDelay": "Mesajlar Arası Gecikme (ms)",
"bulkDelayHint": "1000–60000 ms (varsayılan 3000)",
+ "bulkMediaKind": "Gönderme biçimi",
+ "bulkMediaHint": "Dosya eklendiğinde mesaj, dosyanın açıklaması olur. Seçilen dosya isteğin içinde gönderilir; bu yüzden çok sayıda alıcıya büyük dosya göndermek için herkese açık bir medya URL'si kullanın.",
+ "bulkMediaTooLarge": "Bu dosya {{count}} alıcıya doğrudan gönderilemeyecek kadar büyük: bu alıcı sayısında dosya en fazla {{size}} olabilir. Bunun yerine herkese açık bir medya URL'si kullanın veya daha az alıcıya gönderin.",
+ "bulkMediaUrlInvalid": "http:// veya https:// ile başlayan tam bir adres girin, örneğin https://example.com/file.pdf.",
+ "bulkCaptionTooLong": "Dosya eklendiğinde mesaj, dosyanın açıklaması olarak gönderilir ve açıklama en fazla {{max}} karakter olabilir (şu an {{count}}).",
+ "bulkAudioNoCaption": "Ses açıklama olmadan gönderilir, bu yüzden bu metin gönderilmez. Mesajı temizleyin veya başka bir tür seçin.",
"send": "Mesajı Gönder",
"sending": "Gönderiliyor...",
+ "sendingProgress": "Gönderiliyor {{current}}/{{total}}...",
"viewOnly": "Yalnızca Görüntüle",
"responseEmpty": "API yanıtını görmek için bir mesaj gönderin",
"successLabel": "Başarılı",
diff --cc dashboard/src/i18n/locales/zh-CN.json
index fbb634bfe,80327b39d..5fc7efdca
--- a/dashboard/src/i18n/locales/zh-CN.json
+++ b/dashboard/src/i18n/locales/zh-CN.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "接收者:{{count}}",
"bulkDelay": "消息间隔延迟(毫秒)",
"bulkDelayHint": "1000–60000 毫秒(默认 3000)",
+ "bulkMediaKind": "发送为",
+ "bulkMediaHint": "添加附件后,消息将作为附件的说明文字。所选文件会随请求一起发送,因此向大量接收者发送大文件时,请改用公开的媒体 URL。",
+ "bulkMediaTooLarge": "此文件太大,无法直接发送给 {{count}} 位接收者:在这个人数下,每个文件最大只能为 {{size}}。请改用公开的媒体 URL,或减少接收者数量。",
+ "bulkMediaUrlInvalid": "请输入以 http:// 或 https:// 开头的完整地址,例如 https://example.com/file.pdf。",
+ "bulkCaptionTooLong": "添加附件后,消息将作为附件的说明文字发送,说明文字最多 {{max}} 个字符(当前 {{count}} 个)。",
+ "bulkAudioNoCaption": "音频发送时不带说明文字,因此这段文字不会被发送。请清空消息或选择其他类型。",
"send": "发送消息",
"sending": "正在发送...",
+ "sendingProgress": "正在发送 {{current}}/{{total}}...",
"viewOnly": "仅查看",
"responseEmpty": "发送消息后即可查看 API 响应",
"successLabel": "成功",
diff --cc dashboard/src/i18n/locales/zh-HK.json
index 528749c92,109e21dde..1ff8c23a4
--- a/dashboard/src/i18n/locales/zh-HK.json
+++ b/dashboard/src/i18n/locales/zh-HK.json
@@@ -708,9 -702,14 +708,15 @@@
"bulkRecipientsCount": "收件人:{{count}}",
"bulkDelay": "訊息之間的延遲(毫秒)",
"bulkDelayHint": "1000–60000 毫秒(預設 3000)",
+ "bulkMediaKind": "傳送為",
+ "bulkMediaHint": "加入附件後,訊息會成為附件的說明文字。所選檔案會隨請求一併傳送,因此向大量收件人傳送大型檔案時,請改用公開的媒體 URL。",
+ "bulkMediaTooLarge": "此檔案太大,無法直接傳送給 {{count}} 位收件人:以這個人數計,每個檔案最大只能為 {{size}}。請改用公開的媒體 URL,或減少收件人數目。",
+ "bulkMediaUrlInvalid": "請輸入以 http:// 或 https:// 開頭的完整地址,例如 https://example.com/file.pdf。",
+ "bulkCaptionTooLong": "加入附件後,訊息會作為附件的說明文字傳送,說明文字最多 {{max}} 個字元(目前 {{count}} 個)。",
+ "bulkAudioNoCaption": "音訊傳送時不附說明文字,因此這段文字不會被傳送。請清除訊息或選擇其他類型。",
"send": "傳送訊息",
"sending": "正在傳送...",
+ "sendingProgress": "正在傳送 {{current}}/{{total}}...",
"viewOnly": "僅檢視",
"responseEmpty": "傳送訊息後即可查看 API 回應",
"successLabel": "成功",
diff --cc dashboard/src/pages/MessageTester.tsx
index 9a0d38ff3,094017ea1..03efd800a
--- a/dashboard/src/pages/MessageTester.tsx
+++ b/dashboard/src/pages/MessageTester.tsx
@@@ -13,10 -13,21 +13,24 @@@ import { useDocumentTitle } from '../ho
import { useRole } from '../hooks/useRole';
import { useSessionsQuery, useSessionGroupsQuery } from '../hooks/queries';
import { parseBulkRecipients, BULK_MAX_RECIPIENTS, BULK_RECIPIENTS_FILE_MAX_BYTES } from '../utils/bulkRecipients';
+ import {
+ BULK_CAPTION_MAX_LENGTH,
+ BULK_INLINE_MEDIA_MAX_BYTES,
+ BULK_MEDIA_KINDS,
+ buildBulkMessages,
+ captionLength,
+ formatFileSize,
+ inlineMediaBudgetBytes,
+ isHttpMediaUrl,
+ mediaKindFromMime,
+ mediaKindFromUrl,
+ toBulkAttachment,
+ type BulkMediaKind,
+ } from '../utils/bulkMedia';
import { PageHeader } from '../components/PageHeader';
+import { GroupPicker } from '../components/GroupPicker';
+import { groupLabel, isGatewayRefusal, planGroupSend } from '../utils/groupSelection';
+import { sendSequentially } from '../utils/sendSequentially';
import './MessageTester.css';
interface ApiResponse {
@@@ -603,354 -657,353 +708,358 @@@ export function MessageTester()
</>
)}
- <div className="form-group">
- <span className="group-label" id="message-type-label">
- {t('messageTester.messageType')}
- </span>
- <div className="toggle-group toggle-group-wrap" role="group" aria-labelledby="message-type-label">
- {messageTypes.map(type => (
- <button
- key={type}
- type="button"
- aria-pressed={messageType === type}
- className={messageType === type ? 'active' : ''}
- onClick={() => {
- // A picked file's mimetype is bound to the category active at pick time, so dropping the
- // category would route stale bytes to the wrong send-${type} endpoint — clear it.
- if (type !== messageType) {
- clearMediaFile();
- if (type === 'bulk' || messageType === 'bulk') {
- setMediaUrl('');
- setBulkMediaKindChosen(false);
+ {/* A multi-group run sends what was on screen when it started, so the fields are locked until it
+ ends or is cancelled; Cancel sits outside, so it stays usable. */}
+ <fieldset className="composer-fields" disabled={isGroupSending}>
+ <div className="form-group">
+ <span className="group-label" id="message-type-label">
+ {t('messageTester.messageType')}
+ </span>
+ <div className="toggle-group toggle-group-wrap" role="group" aria-labelledby="message-type-label">
+ {messageTypes.map(type => (
+ <button
+ key={type}
+ type="button"
+ aria-pressed={messageType === type}
+ className={messageType === type ? 'active' : ''}
+ onClick={() => {
+ // A picked file's mimetype is bound to the category active at pick time, so dropping the
+ // category would route stale bytes to the wrong send-${type} endpoint — clear it.
- if (type !== messageType) clearMediaFile();
++ if (type !== messageType) {
++ clearMediaFile();
++ if (type === 'bulk' || messageType === 'bulk') {
++ setMediaUrl('');
++ setBulkMediaKindChosen(false);
++ }
+ }
- }
- setMessageType(type);
- }}
- >
- {t(`messageTester.types.${type}`)}
- </button>
- ))}
+ setMessageType(type);
+ }}
+ >
+ {t(`messageTester.types.${type}`)}
+ </button>
+ ))}
+ </div>
</div>
- </div>
- {messageType === 'text' && (
- <div className="form-group">
- <label htmlFor="mt-2">{t('messageTester.messageContent')}</label>
- <textarea
- id="mt-2"
- value={content}
- onChange={e => setContent(e.target.value)}
- placeholder={t('messageTester.messagePlaceholder')}
- rows={5}
- />
- </div>
- )}
+ {messageType === 'text' && (
+ <div className="form-group">
+ <label htmlFor="mt-2">{t('messageTester.messageContent')}</label>
+ <textarea
+ id="mt-2"
+ value={content}
+ onChange={e => setContent(e.target.value)}
+ placeholder={t('messageTester.messagePlaceholder')}
+ rows={5}
+ />
+ </div>
+ )}
- {isMediaMessageType && (
- <>
- {mediaSourceFields}
- {messageType !== 'audio' && messageType !== 'sticker' && (
+ {isMediaMessageType && (
+ <>
- <div className="form-group">
- <label htmlFor="mt-3">{t('messageTester.mediaUrl')}</label>
- <input
- id="mt-3"
- type="text"
- value={mediaUrl}
- onChange={e => {
- setMediaUrl(e.target.value);
- // Typing a URL supersedes the file: drop the picked file AND any read still
- // in flight (its late onload would otherwise re-clear this URL).
- mediaReadSeq.current += 1;
- if (mediaFile) setMediaFile(null);
- }}
- placeholder="https://example.com/file.jpg"
- disabled={!!mediaFile}
- />
- </div>
- <div className="form-group">
- <label>{t('messageTester.uploadFile')}</label>
- {mediaFile ? (
- <div className="file-selected">
- <span className="file-name" title={mediaFile.filename}>
- {mediaFile.filename}
- </span>
- <button type="button" className="remove-file-btn" onClick={clearMediaFile}>
- <X size={14} /> {t('messageTester.removeFile')}
- </button>
- </div>
- ) : (
- <button type="button" className="browse-btn" onClick={() => fileInputRef.current?.click()}>
- <Upload size={14} /> {t('messageTester.browse')}
- </button>
- )}
- <input
- ref={fileInputRef}
- type="file"
- style={{ display: 'none' }}
- accept={mediaAccept[messageType]}
- onChange={handleFileChange}
- />
- </div>
++ {mediaSourceFields}
+ {messageType !== 'audio' && messageType !== 'sticker' && (
+ <div className="form-group">
+ <label htmlFor="mt-14">
+ {messageType === 'document' ? t('messageTester.filename') : t('messageTester.caption')} (
+ {t('common.optional')})
+ </label>
+ <input
+ id="mt-14"
+ type="text"
+ value={content}
+ onChange={e => setContent(e.target.value)}
+ placeholder={
+ messageType === 'document'
+ ? t('messageTester.filenamePlaceholder')
+ : t('messageTester.captionPlaceholder')
+ }
+ />
+ </div>
+ )}
+ </>
+ )}
+
+ {messageType === 'location' && (
+ <>
+ <div className="form-row">
+ <div className="form-group">
+ <label htmlFor="mt-4">{t('messageTester.locationLatitude')}</label>
+ <input
+ id="mt-4"
+ type="number"
+ step="any"
+ min={-90}
+ max={90}
+ value={latitude}
+ onChange={e => setLatitude(e.target.value)}
+ placeholder="-6.2088"
+ />
+ </div>
+ <div className="form-group">
+ <label htmlFor="mt-5">{t('messageTester.locationLongitude')}</label>
+ <input
+ id="mt-5"
+ type="number"
+ step="any"
+ min={-180}
+ max={180}
+ value={longitude}
+ onChange={e => setLongitude(e.target.value)}
+ placeholder="106.8456"
+ />
+ </div>
+ </div>
<div className="form-group">
- <label htmlFor="mt-14">
- {messageType === 'document' ? t('messageTester.filename') : t('messageTester.caption')} (
- {t('common.optional')})
+ <label htmlFor="mt-15">
+ {t('messageTester.locationDescription')} ({t('common.optional')})
</label>
<input
- id="mt-14"
+ id="mt-15"
type="text"
- value={content}
- onChange={e => setContent(e.target.value)}
- placeholder={
- messageType === 'document'
- ? t('messageTester.filenamePlaceholder')
- : t('messageTester.captionPlaceholder')
- }
+ value={locationDescription}
+ onChange={e => setLocationDescription(e.target.value)}
/>
</div>
- )}
- </>
- )}
+ <div className="form-group">
+ <label htmlFor="mt-16">
+ {t('messageTester.locationAddress')} ({t('common.optional')})
+ </label>
+ <input
+ id="mt-16"
+ type="text"
+ value={locationAddress}
+ onChange={e => setLocationAddress(e.target.value)}
+ />
+ </div>
+ </>
+ )}
- {messageType === 'location' && (
- <>
- <div className="form-row">
+ {messageType === 'contact' && (
+ <>
<div className="form-group">
- <label htmlFor="mt-4">{t('messageTester.locationLatitude')}</label>
+ <label htmlFor="mt-6">{t('messageTester.contactName')}</label>
<input
- id="mt-4"
- type="number"
- step="any"
- min={-90}
- max={90}
- value={latitude}
- onChange={e => setLatitude(e.target.value)}
- placeholder="-6.2088"
+ id="mt-6"
+ type="text"
+ value={contactName}
+ onChange={e => setContactName(e.target.value)}
+ placeholder={t('messageTester.contactNamePlaceholder')}
/>
</div>
<div className="form-group">
- <label htmlFor="mt-5">{t('messageTester.locationLongitude')}</label>
+ <label htmlFor="mt-7">{t('messageTester.contactNumber')}</label>
<input
- id="mt-5"
- type="number"
- step="any"
- min={-180}
- max={180}
- value={longitude}
- onChange={e => setLongitude(e.target.value)}
- placeholder="106.8456"
+ id="mt-7"
+ type="text"
+ value={contactNumber}
+ onChange={e => setContactNumber(e.target.value)}
+ placeholder="+62812345678"
/>
</div>
- </div>
- <div className="form-group">
- <label htmlFor="mt-15">
- {t('messageTester.locationDescription')} ({t('common.optional')})
- </label>
- <input
- id="mt-15"
- type="text"
- value={locationDescription}
- onChange={e => setLocationDescription(e.target.value)}
- />
- </div>
- <div className="form-group">
- <label htmlFor="mt-16">
- {t('messageTester.locationAddress')} ({t('common.optional')})
- </label>
- <input
- id="mt-16"
- type="text"
- value={locationAddress}
- onChange={e => setLocationAddress(e.target.value)}
- />
- </div>
- </>
- )}
-
- {messageType === 'contact' && (
- <>
- <div className="form-group">
- <label htmlFor="mt-6">{t('messageTester.contactName')}</label>
- <input
- id="mt-6"
- type="text"
- value={contactName}
- onChange={e => setContactName(e.target.value)}
- placeholder={t('messageTester.contactNamePlaceholder')}
- />
- </div>
- <div className="form-group">
- <label htmlFor="mt-7">{t('messageTester.contactNumber')}</label>
- <input
- id="mt-7"
- type="text"
- value={contactNumber}
- onChange={e => setContactNumber(e.target.value)}
- placeholder="+62812345678"
- />
- </div>
- </>
- )}
+ </>
+ )}
- {messageType === 'poll' && (
- <>
- <div className="form-group">
- <label htmlFor="mt-8">{t('messageTester.pollQuestion')}</label>
- <input
- id="mt-8"
- type="text"
- value={pollQuestion}
- onChange={e => setPollQuestion(e.target.value)}
- placeholder={t('messageTester.pollQuestionPlaceholder')}
- />
- </div>
- <div className="form-group">
- <label>{t('messageTester.pollOptions')}</label>
- {pollOptions.map((option, index) => (
- <div className="poll-option-row" key={index}>
- <input
- type="text"
- value={option}
- onChange={e => setPollOptions(prev => prev.map((o, i) => (i === index ? e.target.value : o)))}
- placeholder={t('messageTester.pollOptionPlaceholder', { index: index + 1 })}
- />
- <button
- type="button"
- className="remove-option-btn"
- onClick={() => setPollOptions(prev => prev.filter((_, i) => i !== index))}
- disabled={pollOptions.length <= 2}
- aria-label={t('messageTester.removeOption')}
- >
- <X size={14} />
- </button>
- </div>
- ))}
- <button
- type="button"
- className="add-option-btn"
- onClick={() => setPollOptions(prev => [...prev, ''])}
- disabled={pollOptions.length >= 12}
- >
- <Plus size={14} /> {t('messageTester.addOption')}
- </button>
- <span className="hint">{t('messageTester.pollOptionsHint')}</span>
- </div>
- <div className="form-group">
- <label className="checkbox-label">
+ {messageType === 'poll' && (
+ <>
+ <div className="form-group">
+ <label htmlFor="mt-8">{t('messageTester.pollQuestion')}</label>
<input
- type="checkbox"
- checked={allowMultipleAnswers}
- onChange={e => setAllowMultipleAnswers(e.target.checked)}
+ id="mt-8"
+ type="text"
+ value={pollQuestion}
+ onChange={e => setPollQuestion(e.target.value)}
+ placeholder={t('messageTester.pollQuestionPlaceholder')}
/>
- {t('messageTester.allowMultipleAnswers')}
- </label>
- </div>
- </>
- )}
-
- {messageType === 'forward' && (
- <>
- <div className="form-group">
- <label htmlFor="mt-17">
- {t('messageTester.forwardFromChatId')} ({t('common.optional')})
- </label>
- <input
- id="mt-17"
- type="text"
- value={forwardFrom}
- onChange={e => setForwardFrom(e.target.value)}
- placeholder={
- (recipientType === 'group' ? selectedGroup : recipient) || t('messageTester.forwardFromPlaceholder')
- }
- />
- <span className="hint">{t('messageTester.forwardFromHint')}</span>
- </div>
- <div className="form-group">
- <label htmlFor="mt-9">{t('messageTester.forwardToChatId')}</label>
- <input
- id="mt-9"
- type="text"
- value={forwardTo}
- onChange={e => setForwardTo(e.target.value)}
- placeholder={t('messageTester.forwardToPlaceholder')}
- />
- </div>
- <div className="form-group">
- <label htmlFor="mt-10">{t('messageTester.forwardMessageId')}</label>
- <input
- id="mt-10"
- type="text"
- value={forwardMessageId}
- onChange={e => setForwardMessageId(e.target.value)}
- />
- <span className="hint">{t('messageTester.forwardMessageIdHint')}</span>
- </div>
- </>
- )}
+ </div>
+ <div className="form-group">
+ <label>{t('messageTester.pollOptions')}</label>
+ {pollOptions.map((option, index) => (
+ <div className="poll-option-row" key={index}>
+ <input
+ type="text"
+ value={option}
+ onChange={e => setPollOptions(prev => prev.map((o, i) => (i === index ? e.target.value : o)))}
+ placeholder={t('messageTester.pollOptionPlaceholder', { index: index + 1 })}
+ />
+ <button
+ type="button"
+ className="remove-option-btn"
+ onClick={() => setPollOptions(prev => prev.filter((_, i) => i !== index))}
+ disabled={pollOptions.length <= 2}
+ aria-label={t('messageTester.removeOption')}
+ >
+ <X size={14} />
+ </button>
+ </div>
+ ))}
+ <button
+ type="button"
+ className="add-option-btn"
+ onClick={() => setPollOptions(prev => [...prev, ''])}
+ disabled={pollOptions.length >= 12}
+ >
+ <Plus size={14} /> {t('messageTester.addOption')}
+ </button>
+ <span className="hint">{t('messageTester.pollOptionsHint')}</span>
+ </div>
+ <div className="form-group">
+ <label className="checkbox-label">
+ <input
+ type="checkbox"
+ checked={allowMultipleAnswers}
+ onChange={e => setAllowMultipleAnswers(e.target.checked)}
+ />
+ {t('messageTester.allowMultipleAnswers')}
+ </label>
+ </div>
+ </>
+ )}
- {messageType === 'bulk' && (
- <>
- <div className="form-group">
- <div
- style={{
- display: 'flex',
- justifyContent: 'space-between',
- alignItems: 'center',
- marginBottom: '0.5rem',
- }}
- >
- <label htmlFor="mt-11" style={{ marginBottom: 0 }}>
- {t('messageTester.bulkRecipients')}
+ {messageType === 'forward' && (
+ <>
+ <div className="form-group">
+ <label htmlFor="mt-17">
+ {t('messageTester.forwardFromChatId')} ({t('common.optional')})
</label>
- <button type="button" className="browse-btn" onClick={() => bulkFileInputRef.current?.click()}>
- <Upload size={14} /> {t('messageTester.bulkRecipientsUpload')}
- </button>
<input
- ref={bulkFileInputRef}
- type="file"
- accept=".txt,.csv"
- style={{ display: 'none' }}
- onChange={handleBulkFileChange}
+ id="mt-17"
+ type="text"
+ value={forwardFrom}
+ onChange={e => setForwardFrom(e.target.value)}
+ placeholder={
+ (recipientType === 'group' ? selectedGroups[0] : recipient) ||
+ t('messageTester.forwardFromPlaceholder')
+ }
/>
+ <span className="hint">{t('messageTester.forwardFromHint')}</span>
</div>
- <textarea
- id="mt-11"
- value={bulkRecipients}
- onChange={e => setBulkRecipients(e.target.value)}
- placeholder={t('messageTester.bulkRecipientsPlaceholder')}
- rows={4}
- />
- <span className="hint">
- {t('messageTester.bulkRecipientsHint')} ·{' '}
- {t('messageTester.bulkRecipientsCount', { count: bulkRecipientList.length })}
- </span>
- </div>
- <div className="form-group">
- <label htmlFor="mt-12">{t('messageTester.messageContent')}</label>
- <textarea
- id="mt-12"
- value={content}
- onChange={e => setContent(e.target.value)}
- placeholder={t('messageTester.messagePlaceholder')}
- rows={4}
- />
- <span className="hint error" role="status">
- {bulkAudioWithText
- ? t('messageTester.bulkAudioNoCaption')
- : bulkCaptionTooLong
- ? t('messageTester.bulkCaptionTooLong', {
- max: BULK_CAPTION_MAX_LENGTH,
- count: captionLength(content),
- })
- : ''}
- </span>
- </div>
- {mediaSourceFields}
- {bulkAttachment && (
<div className="form-group">
- <span className="group-label" id="bulk-media-kind-label">
- {t('messageTester.bulkMediaKind')}
- </span>
+ <label htmlFor="mt-9">{t('messageTester.forwardToChatId')}</label>
+ <input
+ id="mt-9"
+ type="text"
+ value={forwardTo}
+ onChange={e => setForwardTo(e.target.value)}
+ placeholder={t('messageTester.forwardToPlaceholder')}
+ />
+ </div>
+ <div className="form-group">
+ <label htmlFor="mt-10">{t('messageTester.forwardMessageId')}</label>
+ <input
+ id="mt-10"
+ type="text"
+ value={forwardMessageId}
+ onChange={e => setForwardMessageId(e.target.value)}
+ />
+ <span className="hint">{t('messageTester.forwardMessageIdHint')}</span>
+ </div>
+ </>
+ )}
+
+ {messageType === 'bulk' && (
+ <>
+ <div className="form-group">
<div
- className="toggle-group toggle-group-wrap bulk-media-kind"
- role="group"
- aria-labelledby="bulk-media-kind-label"
+ style={{
+ display: 'flex',
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ marginBottom: '0.5rem',
+ }}
>
- {BULK_MEDIA_KINDS.map(kind => (
- <button
- key={kind}
- type="button"
- aria-pressed={bulkMediaKind === kind}
- className={bulkMediaKind === kind ? 'active' : ''}
- onClick={() => {
- setBulkMediaKind(kind);
- setBulkMediaKindChosen(true);
- }}
- >
- {t(`messageTester.types.${kind}`)}
- </button>
- ))}
+ <label htmlFor="mt-11" style={{ marginBottom: 0 }}>
+ {t('messageTester.bulkRecipients')}
+ </label>
+ <button type="button" className="browse-btn" onClick={() => bulkFileInputRef.current?.click()}>
+ <Upload size={14} /> {t('messageTester.bulkRecipientsUpload')}
+ </button>
+ <input
+ ref={bulkFileInputRef}
+ type="file"
+ accept=".txt,.csv"
+ style={{ display: 'none' }}
+ onChange={handleBulkFileChange}
+ />
</div>
+ <textarea
+ id="mt-11"
+ value={bulkRecipients}
+ onChange={e => setBulkRecipients(e.target.value)}
+ placeholder={t('messageTester.bulkRecipientsPlaceholder')}
+ rows={4}
+ />
+ <span className="hint">
+ {t('messageTester.bulkRecipientsHint')} ·{' '}
+ {t('messageTester.bulkRecipientsCount', { count: bulkRecipientList.length })}
+ </span>
</div>
- )}
- <div className="form-group">
- <label htmlFor="mt-18">
- {t('messageTester.bulkDelay')} ({t('common.optional')})
- </label>
- <input
- id="mt-18"
- type="number"
- min={1000}
- max={60000}
- step={500}
- value={bulkDelay}
- onChange={e => setBulkDelay(e.target.value)}
- placeholder="3000"
- />
- <span className="hint">{t('messageTester.bulkDelayHint')}</span>
- </div>
- </>
- )}
+ <div className="form-group">
+ <label htmlFor="mt-12">{t('messageTester.messageContent')}</label>
+ <textarea
+ id="mt-12"
+ value={content}
+ onChange={e => setContent(e.target.value)}
+ placeholder={t('messageTester.messagePlaceholder')}
+ rows={4}
+ />
++ <span className="hint error" role="status">
++ {bulkAudioWithText
++ ? t('messageTester.bulkAudioNoCaption')
++ : bulkCaptionTooLong
++ ? t('messageTester.bulkCaptionTooLong', {
++ max: BULK_CAPTION_MAX_LENGTH,
++ count: captionLength(content),
++ })
++ : ''}
++ </span>
+ </div>
++ {mediaSourceFields}
++ {bulkAttachment && (
++ <div className="form-group">
++ <span className="group-label" id="bulk-media-kind-label">
++ {t('messageTester.bulkMediaKind')}
++ </span>
++ <div
++ className="toggle-group toggle-group-wrap bulk-media-kind"
++ role="group"
++ aria-labelledby="bulk-media-kind-label"
++ >
++ {BULK_MEDIA_KINDS.map(kind => (
++ <button
++ key={kind}
++ type="button"
++ aria-pressed={bulkMediaKind === kind}
++ className={bulkMediaKind === kind ? 'active' : ''}
++ onClick={() => {
++ setBulkMediaKind(kind);
++ setBulkMediaKindChosen(true);
++ }}
++ >
++ {t(`messageTester.types.${kind}`)}
++ </button>
++ ))}
++ </div>
++ </div>
++ )}
+ <div className="form-group">
+ <label htmlFor="mt-18">
+ {t('messageTester.bulkDelay')} ({t('common.optional')})
+ </label>
+ <input
+ id="mt-18"
+ type="number"
+ min={1000}
+ max={60000}
+ step={500}
+ value={bulkDelay}
+ onChange={e => setBulkDelay(e.target.value)}
+ placeholder="3000"
+ />
+ <span className="hint">{t('messageTester.bulkDelayHint')}</span>
+ </div>
+ </>
+ )}
+ </fieldset>
<button className="send-btn" onClick={handleSend} disabled={isSendDisabled}>
{isLoading ? <Loader2 className="animate-spin" size={18} /> : <Send size={18} />}