# SB_STATUS_QUERY

Queries the AdminBot-selected group status (useful to determine the subscription length).  
Result is being returned using [SB_STATUS_REPLY](/doc/d1eb85d8-4b6c-4422-89bb-154e13230309) event.

## Command usage

```csharp
llMessageLinked(LINK_SET, SB_STATUS_QUERY, string str, key id);
```

```snippet adminbot-api-parameters-RxnGv0pgFW command="SB_STATUS_QUERY"
str | yes | \--
id  | yes | \--
```

## Return value

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

```csharp
link_message(integer sender, integer num, string str, key id) {
  ...
}
```

Where:

* `sender` — link number of a sender prim
* `num` — `SB_STATUS_QUERY`
* `str`
  * first line: group status code (see all codes here)
  * second line: group expiration date
* `id` — group UUID