sendGroupIM

From SmartBots Developers Docs
Jump to: navigation, search

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

  1. 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.
  2. The message delivery is guaranteed even if bot is offline (the message will be sent when bot comes online)