mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update Message.ts
This commit is contained in:
@@ -55,6 +55,7 @@ type Mentionable = {
|
||||
type ViewOnce = {
|
||||
viewOnce?: boolean
|
||||
}
|
||||
|
||||
type Buttonable = {
|
||||
/** add buttons to the message */
|
||||
buttons?: proto.Message.ButtonsMessage.IButton[]
|
||||
@@ -65,6 +66,9 @@ type Templatable = {
|
||||
|
||||
footer?: string
|
||||
}
|
||||
type Editable = {
|
||||
edited?: WAMessageKey
|
||||
}
|
||||
type Listable = {
|
||||
/** Sections of the List */
|
||||
sections?: proto.Message.ListMessage.ISection[]
|
||||
@@ -117,7 +121,7 @@ export type AnyMediaMessageContent = (
|
||||
fileName?: string
|
||||
caption?: string
|
||||
} & Buttonable & Templatable))
|
||||
& { mimetype?: string }
|
||||
& { mimetype?: string } & Editable
|
||||
|
||||
export type ButtonReplyInfo = {
|
||||
displayText: string
|
||||
@@ -134,11 +138,11 @@ export type AnyRegularMessageContent = (
|
||||
text: string
|
||||
linkPreview?: WAUrlInfo | null
|
||||
}
|
||||
& Mentionable & Buttonable & Templatable & Listable)
|
||||
& Mentionable & Buttonable & Templatable & Listable & Editable)
|
||||
| AnyMediaMessageContent
|
||||
| ({
|
||||
poll: PollMessageOptions
|
||||
} & Mentionable & Buttonable & Templatable)
|
||||
} & Mentionable & Buttonable & Templatable & Editable)
|
||||
| {
|
||||
contacts: {
|
||||
displayName?: string
|
||||
|
||||
Reference in New Issue
Block a user