Description
Object represents commands to be sent. CommandRequest composed of an array of commands.
Each command has a type repsenting unique set of data.
There are folowing types of commands available:
- SendMessage ;
- EditMessage;
- DeleteMessage;
- ForwardMessage;
- KickFromGroup;
- ChangeGroupAvatar;
- DeleteGroupAvatar;
- ChangeGroupTitle;
- ChangeGroupDescription;
Structure
Variable | Obligative | Type | Validation | Description |
---|---|---|---|---|
commands | true | List of Command objects | Maximum commands length is 10 | Array of command objects |
Sample request
{
"commands":[
{
"type":"ChangeGroupDescription",
"groupId":"Uuid_value",
"description":"New description"
},
{
"type":"ChangeGroupTitle",
"groupId":"Uuid_value",
"title":"New title"
}
]
}