mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: handle call events
This commit is contained in:
14
src/Types/Call.ts
Normal file
14
src/Types/Call.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
export type WACallUpdateType = 'offer' | 'ringing' | 'timeout' | 'reject' | 'accept'
|
||||
|
||||
export type WACallEvent = {
|
||||
chatId: string
|
||||
from: string
|
||||
isGroup?: boolean
|
||||
id: string
|
||||
date: Date
|
||||
isVideo?: boolean
|
||||
status: WACallUpdateType
|
||||
offline: boolean
|
||||
latencyMs?: number
|
||||
}
|
||||
Reference in New Issue
Block a user