sendGroupIM
From SmartBots Developers Docs
Revision as of 21:13, 2 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Sends a message to group chat.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.sendGroupIM(groupuuid, message); </syntaxhi...")
Sends a message to group chat.
Bot.sendGroupIM(groupuuid, message);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
groupuuid | yes | the UUID of the group | |
message | yes | the text to send (can contain international characters) | |
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed |
Comments
- This command does not return FAIL if your bot has no "Join Group Chat" ability. Pay attention to the bot's group permissions while using this command.
- The message delivery is guaranteed even if bot is offline (the message will be sent when bot comes online)