Marks or unmarks your messages as important. These flags feed the filter=important folder.
| Parameter | Type | Required | Description |
|---|---|---|---|
message_ids |
string | yes | Comma-separated message ids. |
important |
integer | no | 1 to mark, 0 to unmark. Default 1. |
curl -s -X POST 'https://durovloh.net/api.php' \ -d 'method=messages.markAsImportant' \ -d 'access_token=USER_TOKEN'