ContactSelf
Bot itself will be encapsulated as a ContactSelf. This class is extends Contact
ContactSelf
Bot itself will be encapsulated as a ContactSelf.
Tips: this class is extends Contact
Kind: global class
contactSelf.avatar([file]) ⇒ Promise <void | FileBox>
Promise <void | FileBox>
GET / SET bot avatar
Kind: instance method of ContactSelf
Param
Type
[file]
FileBox
Example ( GET the avatar for bot, return {Promise<FileBox>})
Example (SET the avatar for a bot)
contactSelf.qrcode() ⇒ Promise <string>
Promise <string>
Get bot qrcode
Kind: instance method of ContactSelf
Example
contactSelf.signature(signature) ⇒ Promise <void>
Promise <void>
Change bot signature
Kind: instance method of ContactSelf
Param
Description
signature
The new signature that the bot will change to
Example
contactSelf.name([name]) ⇒ Promise<void> | string
Promise<void> | string
Get or change bot name.
Kind: instance method of ContactSelf
Param
Description
[name]
The new alias that the bot will change to
Example
Last updated
Was this helpful?