Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/apps/chatwoot/consumers/waha/message.any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ export class MessageAnyHandler extends MessageBaseHandler<WAMessage> {
return msg;
}

converter = new TextMessage(this.l, this.logger, this.waha, this.job);
converter = new TextMessage(
this.l,
this.logger,
this.waha,
this.job,
this.session,
);
msg = await converter.convert(payload, null);
if (msg) {
return msg;
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/ar-AE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **تم إرسال PIX نسخ ولصق**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **رد على حالة واتساب**
🏷️ **النوع:** {{type}}
📝 **نص الحالة الأصلي:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **رد على حالة واتساب**
🏷️ **النوع:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **هذا النوع من الرسائل غير مدعوم في هذا الصندوق الوارد.**
📱 يرجى فتح **WhatsApp** لعرضه.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/bn-BD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX কপি এবং পেস্ট পাঠানো হয়েছে**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **WhatsApp স্ট্যাটাসের জবাব**
🏷️ **ধরন:** {{type}}
📝 **মূল স্ট্যাটাসের টেক্সট:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **WhatsApp স্ট্যাটাসের জবাব**
🏷️ **ধরন:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **এই ধরনের বার্তা এই ইনবক্সে সমর্থিত নয়।**
📱 এটি দেখতে অনুগ্রহ করে **WhatsApp** খুলুন।
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/de-DE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Kopieren und Einfügen gesendet**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Antwort auf WhatsApp-Status**
🏷️ **Typ:** {{type}}
📝 **Originaler Status-Text:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Antwort auf WhatsApp-Status**
🏷️ **Typ:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Dieser Nachrichtentyp wird in dieser Inbox nicht unterstützt.**
📱 Bitte öffne **WhatsApp**, um ihn anzusehen.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/en-US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Copy and Paste sent**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Reply to WhatsApp Status**
🏷️ **Type:** {{type}}
📝 **Original status text:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Reply to WhatsApp Status**
🏷️ **Type:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.has.media.no.media: |-
{{#content}}
{{{content}}}
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/es-ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Copiar y Pegar enviado**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Respuesta al estado de WhatsApp**
🏷️ **Tipo:** {{type}}
📝 **Texto original del estado:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Respuesta al estado de WhatsApp**
🏷️ **Tipo:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Este tipo de mensaje no es compatible con esta bandeja de entrada.**
📱 Por favor, abre **WhatsApp** para verlo.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/fa-IR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX کپی و چسباندن ارسال شد**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **پاسخ به وضعیت واتساپ**
🏷️ **نوع:** {{type}}
📝 **متن اصلی وضعیت:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **پاسخ به وضعیت واتساپ**
🏷️ **نوع:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **این نوع پیام در این صندوق ورودی پشتیبانی نمی‌شود.**
📱 لطفاً برای مشاهده آن **WhatsApp** را باز کنید.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/fr-FR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Copier et Coller envoyé**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Réponse au statut WhatsApp**
🏷️ **Type :** {{type}}
📝 **Texte original du statut :** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Réponse au statut WhatsApp**
🏷️ **Type :** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Ce type de message n’est pas pris en charge dans cette boîte de réception.**
📱 Veuillez ouvrir **WhatsApp** pour l’afficher.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/he-IL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX העתק והדבק נשלח**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **תגובה לסטטוס ב-WhatsApp**
🏷️ **סוג:** {{type}}
📝 **טקסט הסטטוס המקורי:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **תגובה לסטטוס ב-WhatsApp**
🏷️ **סוג:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **סוג הודעה זה אינו נתמך בתיבה זו.**
📱 אנא פתח/י את **WhatsApp** כדי לצפות בזה.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/hi-IN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX कॉपी और पेस्ट भेजा गया**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **WhatsApp स्टेटस का जवाब**
🏷️ **प्रकार:** {{type}}
📝 **मूल स्टेटस टेक्स्ट:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **WhatsApp स्टेटस का जवाब**
🏷️ **प्रकार:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **इस प्रकार का संदेश इस इनबॉक्स में समर्थित नहीं है।**
📱 इसे देखने के लिए कृपया **WhatsApp** खोलें।
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/id-ID.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Salin dan Tempel terkirim**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Balasan ke Status WhatsApp**
🏷️ **Tipe:** {{type}}
📝 **Teks status asli:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Balasan ke Status WhatsApp**
🏷️ **Tipe:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Jenis pesan ini tidak didukung di kotak masuk ini.**
📱 Silakan buka **WhatsApp** untuk melihatnya.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/it-IT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Copia e Incolla inviato**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Risposta allo stato di WhatsApp**
🏷️ **Tipo:** {{type}}
📝 **Testo originale dello stato:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Risposta allo stato di WhatsApp**
🏷️ **Tipo:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.has.media.no.media: |-
{{#content}}
{{{content}}}
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/pa-PK.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX ਕਾਪੀ ਅਤੇ ਪੇਸਟ ਭੇਜਿਆ ਗਿਆ**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **WhatsApp ਸਟੇਟਸ ਦਾ ਜਵਾਬ**
🏷️ **ਕਿਸਮ:** {{type}}
📝 **ਅਸਲ ਸਟੇਟਸ ਲਿਖਤ:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **WhatsApp ਸਟੇਟਸ ਦਾ ਜਵਾਬ**
🏷️ **ਕਿਸਮ:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **ਇਹ ਸੁਨੇਹੇ ਦੀ ਕਿਸਮ ਇਸ ਇਨਬਾਕਸ ਵਿੱਚ ਸਮਰਥਿਤ ਨਹੀਂ ਹੈ।**
📱 ਇਸਨੂੰ ਦੇਖਣ ਲਈ ਕਿਰਪਾ ਕਰਕੇ **WhatsApp** ਖੋਲ੍ਹੋ।
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/pt-BR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Copia e Cola enviado**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Resposta a Status do WhatsApp**
🏷️ **Tipo:** {{type}}
📝 **Texto original do status:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Resposta a Status do WhatsApp**
🏷️ **Tipo:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Esse tipo de mensagem não é suportado nesta caixa de entrada.**
📱 Por favor, abra o **WhatsApp** para visualizá-la.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/ru-RU.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Копировать и вставить отправлен**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Ответ на статус WhatsApp**
🏷️ **Тип:** {{type}}
📝 **Оригинальный текст статуса:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Ответ на статус WhatsApp**
🏷️ **Тип:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Этот тип сообщения не поддерживается в этом Inbox.**
📱 Пожалуйста, откройте **WhatsApp**, чтобы просмотреть.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/tr-TR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Kopyala ve Yapıştır gönderildi**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **WhatsApp Durumuna Yanıt**
🏷️ **Tür:** {{type}}
📝 **Orijinal durum metni:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **WhatsApp Durumuna Yanıt**
🏷️ **Tür:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Bu mesaj türü bu gelen kutusunda desteklenmiyor.**
📱 Görüntülemek için lütfen **WhatsApp’ı** açın.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/uk-UA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX Копіювати та Вставити надіслано**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **Відповідь на статус WhatsApp**
🏷️ **Тип:** {{type}}
📝 **Оригінальний текст статусу:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **Відповідь на статус WhatsApp**
🏷️ **Тип:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **Цей тип повідомлення не підтримується в цих вхідних.**
📱 Будь ласка, відкрийте **WhatsApp**, щоб переглянути.
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/ur-PK.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX کاپی اور پیسٹ بھیج دیا گیا**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **WhatsApp اسٹیٹس کا جواب**
🏷️ **قسم:** {{type}}
📝 **اصل اسٹیٹس کا متن:** {{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **WhatsApp اسٹیٹس کا جواب**
🏷️ **قسم:** {{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **اس قسم کا پیغام اس انبکس میں معاونت یافتہ نہیں ہے۔**
📱 اسے دیکھنے کے لیے براہ کرم **WhatsApp** کھولیں۔
Expand Down
13 changes: 13 additions & 0 deletions src/apps/chatwoot/i18n/locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ whatsapp.to.chatwoot.message.pix: |-
💳 **PIX 复制粘贴已发送**
{{/pixData}}

whatsapp.to.chatwoot.message.status.reply.with.text: |-
📣 **回复 WhatsApp 状态**
🏷️ **类型:**{{type}}
📝 **原始状态文本:**{{quotedText}}

{{content}}

whatsapp.to.chatwoot.message.status.reply.without.text: |-
📣 **回复 WhatsApp 状态**
🏷️ **类型:**{{type}}

{{content}}

whatsapp.to.chatwoot.message.unsupported: |-
⚠️ **此收件箱不支持此消息类型。**
📱 请打开 **WhatsApp** 查看。
Expand Down
11 changes: 11 additions & 0 deletions src/apps/chatwoot/i18n/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export enum TKey {
WA_TO_CW_MESSAGE_POLL = 'whatsapp.to.chatwoot.message.poll',
WA_TO_CW_MESSAGE_EVENT = 'whatsapp.to.chatwoot.message.event',
WA_TO_CW_MESSAGE_PIX = 'whatsapp.to.chatwoot.message.pix',
WA_TO_CW_MESSAGE_STATUS_REPLY_WITH_TEXT = 'whatsapp.to.chatwoot.message.status.reply.with.text',
WA_TO_CW_MESSAGE_STATUS_REPLY_WITHOUT_TEXT = 'whatsapp.to.chatwoot.message.status.reply.without.text',
WA_TO_CW_MESSAGE_UNSUPPORTED = 'whatsapp.to.chatwoot.message.unsupported',
WA_TO_CW_MESSAGE_FACEBOOK_AD = 'whatsapp.to.chatwoot.message.facebook.ad',
WA_TO_CW_MESSAGE_LIST = 'whatsapp.to.chatwoot.message.list',
Expand Down Expand Up @@ -189,6 +191,15 @@ export type TemplatePayloads = {
message: proto.Message | null;
pixData: PixTemplatePayload;
};
[TKey.WA_TO_CW_MESSAGE_STATUS_REPLY_WITH_TEXT]: {
type: string;
quotedText: string;
content: string;
};
[TKey.WA_TO_CW_MESSAGE_STATUS_REPLY_WITHOUT_TEXT]: {
type: string;
content: string;
};
[TKey.WA_TO_CW_MESSAGE_UNSUPPORTED]: { details: Link };
[TKey.WA_TO_CW_MESSAGE_FACEBOOK_AD]: {
payload: WAMessage;
Expand Down
Loading