[core] Get body for buttons response
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user