mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add legacy connection
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { Contact } from "./Contact"
|
||||
|
||||
export type WAConnectionState = 'open' | 'connecting' | 'close'
|
||||
|
||||
export type ConnectionState = {
|
||||
@@ -13,5 +15,11 @@ export type ConnectionState = {
|
||||
/** the current QR code */
|
||||
qr?: string
|
||||
/** has the device received all pending notifications while it was offline */
|
||||
receivedPendingNotifications?: boolean
|
||||
receivedPendingNotifications?: boolean
|
||||
/** legacy connection options */
|
||||
legacy?: {
|
||||
phoneConnected: boolean
|
||||
user?: Contact
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user