From SmartBots Developers Docs
Jump to: navigation, search

Queries the selected bot status (useful to determine the subscription length). Result is being returned using BOT_EVENT_STATUS_REPLY event



The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description.

str yes ---
id yes ---

Return value

The result of this command will be returned to your script using BOT_EVENT_STATUS_REPLY event:

link_message( integer sender, integer num, string str, key id )
sender link number of a sender prim
str first line - bot status code (see all codes here)

second line - bot expiration date

id Bot UUID