[core] Get body for buttons response

This commit is contained in:
devlikepro committed 2024-10-16 13:53:15 +07:00
1 parent ff4f0a59af
commit b488b9f1df
1 file changed
+4
@@ -1404,6 +1404,10 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
// @ts-ignore - AudioMessage doesn't have caption field
body = mediaContent?.caption;
}
// Response for buttons
if (!body) {
body = message.templateButtonReplyMessage?.selectedDisplayText;
}
return body;
}