mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
usync: add bot profile protocol to query class
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import { USyncQueryProtocol } from '../Types/USync'
|
import { USyncQueryProtocol } from '../Types/USync'
|
||||||
import { BinaryNode, getBinaryNodeChild } from '../WABinary'
|
import { BinaryNode, getBinaryNodeChild } from '../WABinary'
|
||||||
|
import { USyncBotProfileProtocol } from './Protocols/UsyncBotProfileProtocol'
|
||||||
|
import { USyncLIDProtocol } from './Protocols/UsyncLIDProtocol'
|
||||||
import { USyncContactProtocol, USyncDeviceProtocol, USyncDisappearingModeProtocol, USyncStatusProtocol } from './Protocols'
|
import { USyncContactProtocol, USyncDeviceProtocol, USyncDisappearingModeProtocol, USyncStatusProtocol } from './Protocols'
|
||||||
import { USyncUser } from './USyncUser'
|
import { USyncUser } from './USyncUser'
|
||||||
|
|
||||||
@@ -100,4 +102,10 @@ export class USyncQuery {
|
|||||||
this.protocols.push(new USyncDisappearingModeProtocol())
|
this.protocols.push(new USyncDisappearingModeProtocol())
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
withBotProfileProtocol() {
|
||||||
|
this.protocols.push(new USyncBotProfileProtocol())
|
||||||
|
return this
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user