mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added List message support and removed "saving auth state" (#1048)
* Added template support and footers for buttons & templates * Template message readme * got rid of "saving auth state" and added lists * added body * Update README.md
This commit is contained in:
@@ -58,6 +58,16 @@ type Templatable = {
|
||||
|
||||
footer?: string
|
||||
}
|
||||
type Listable = {
|
||||
/** Sections of the List */
|
||||
sections?: proto.ISection[]
|
||||
|
||||
/** Title of a List Message only */
|
||||
title?: string
|
||||
|
||||
/** Text of the bnutton on the list (required) */
|
||||
buttonText: string
|
||||
}
|
||||
type WithDimensions = {
|
||||
width?: number
|
||||
height?: number
|
||||
@@ -93,7 +103,7 @@ export type AnyRegularMessageContent = (
|
||||
({
|
||||
text: string
|
||||
}
|
||||
& Mentionable & Buttonable & Templatable) |
|
||||
& Mentionable & Buttonable & Templatable & Listable) |
|
||||
AnyMediaMessageContent |
|
||||
{
|
||||
contacts: {
|
||||
|
||||
Reference in New Issue
Block a user