# BOT_LIST_GROUPS

Retrieves a list of all the groups the bot is in.

## Variables

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

| **Variable** | **Description** |
|----------|-------------|
| `str`    | —           |
| `id`     | —           |


---

## Result

The following event will be raised with the list of the bot’s groups:

* [`BOT_LIST_GROUPS_REPLY`](/doc/bot_list_groups_reply-d4VfOM4EEQ)


---

## Example

```csharp
llMessageLinked(LINK_SET, BOT_LIST_GROUPS, "", "");
```