balance_changed
Activates when the bot's balance changes.
Incoming and outgoing parameters
The input parameters are sent to your HTTP script along with this event. Output parameters (if any) should be generated by your script.
Input parameters
Parameter | Required | Value |
|---|---|---|
action | yes | = instant_message |
bot_name | yes | the SL name of your bot |
channel | yes | the unique bot id |
cid | yes | internal HTTP connection identifier (you can ignore this value) |
Input parameters specific for instant_message
Parameter | Required | Description |
|---|---|---|
amount | yes | The amount sent or received |
direction | yes | The direction of the payment |
source | yes | The source of the payment |
destination | yes | The destination of the payment |
balance | yes | The new balance |
trx_type | yes | The transaction type |
More info
Your bot generates this callback message after receiving an instant message from an avatar.
Bot does not expect any reply from your script (this is just a notification).