weixin-ts / bot/src / LoginCallbacks
Interface: LoginCallbacks
Defined in: bot/src/types.ts:299
Callbacks for the login flow
Properties
onQrCode?
optionalonQrCode?: (qrcodeUrl) =>void
Defined in: bot/src/types.ts:301
Called with QR URL when login requires scanning
Parameters
qrcodeUrl
string
Returns
void
onQrRefresh?
optionalonQrRefresh?: (newQrcodeUrl) =>void
Defined in: bot/src/types.ts:305
Called when QR code is refreshed after expiry (new URL)
Parameters
newQrcodeUrl
string
Returns
void
onScanned?
optionalonScanned?: () =>void
Defined in: bot/src/types.ts:303
Called when the QR code is scanned (user needs to confirm in WeChat)
Returns
void