mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Depracations + Semantic Changes
This commit is contained in:
@@ -19,7 +19,10 @@ export function validateJIDForSending (jid: string) {
|
||||
}
|
||||
}
|
||||
|
||||
/** Type of notification */
|
||||
/**
|
||||
* Type of notification
|
||||
* @deprecated use WA_MESSAGE_STUB_TYPE instead
|
||||
* */
|
||||
export function getNotificationType(message: WAMessage): [string, MessageType?] {
|
||||
if (message.message) {
|
||||
return ['message', Object.keys(message.message)[0] as MessageType]
|
||||
|
||||
Reference in New Issue
Block a user