mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix listMessage (#1070)
* fix listMessage * Default listType Co-authored-by: Rajeh Taher <rajeh@reforward.dev> * use the ListMessageListType enum * use the ListMessageListType enum Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
@@ -177,4 +177,4 @@ export type WAMessageUpdate = { update: Partial<WAMessage>, key: proto.IMessageK
|
||||
|
||||
export type WAMessageCursor = { before: WAMessageKey | undefined } | { after: WAMessageKey | undefined }
|
||||
|
||||
export type MessageInfoUpdate = { key: proto.IMessageKey, update: Partial<MessageInfo> }
|
||||
export type MessageInfoUpdate = { key: proto.IMessageKey, update: Partial<MessageInfo> }
|
||||
|
||||
@@ -331,7 +331,8 @@ export const generateWAMessageContent = async(
|
||||
buttonText: message.buttonText,
|
||||
title: message.title,
|
||||
footerText: message.footer,
|
||||
description: message.text
|
||||
description: message.text,
|
||||
listType: proto.ListMessage.ListMessageListType['SINGLE_SELECT']
|
||||
}
|
||||
|
||||
m = { listMessage }
|
||||
|
||||
Reference in New Issue
Block a user