# BOT_LIST_GROUPS

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

```snippet totalcontrol-variables-EsRYwBUh4J
str | —
id  | —
```


---

## Result

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

* [BOT_LIST_GROUPS_REPLY](/doc/2ea95a9d-af14-4cfc-b7ff-92d66df9dc45)


---

## Example

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