usync: add bot profile protocol to query class

This commit is contained in:
Rajeh Taher
2025-04-09 20:16:35 +03:00
parent a4aad45343
commit 1ab7f9b561

View File

@@ -1,5 +1,7 @@
import { USyncQueryProtocol } from '../Types/USync'
import { BinaryNode, getBinaryNodeChild } from '../WABinary'
import { USyncBotProfileProtocol } from './Protocols/UsyncBotProfileProtocol'
import { USyncLIDProtocol } from './Protocols/UsyncLIDProtocol'
import { USyncContactProtocol, USyncDeviceProtocol, USyncDisappearingModeProtocol, USyncStatusProtocol } from './Protocols'
import { USyncUser } from './USyncUser'
@@ -100,4 +102,10 @@ export class USyncQuery {
this.protocols.push(new USyncDisappearingModeProtocol())
return this
}
}
withBotProfileProtocol() {
this.protocols.push(new USyncBotProfileProtocol())
return this
}
}