POST Message/BotUpdate

Request Information

URI Parameters

None.

Body Parameters

BotUpdateMessageForm
NameDescriptionTypeAdditional information
messageId

integer

None.

postText

string

None.

editorMode

PostEditorMode

None.

attachedActions

Collection of AttachmentEntityCreateForm

None.

attachments

Collection of AttachmentView

None.

share

ShareDataUpdateForm

None.

messageFormat

Формат вывода текста

MessageFormat

None.

Request Formats

application/json, text/json

Sample:
{
  "messageId": 1,
  "postText": "sample string 2",
  "editorMode": 0,
  "attachedActions": [
    {
      "actions": [
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        },
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        }
      ],
      "uid": "sample string 1",
      "title": "sample string 2",
      "type": 0
    },
    {
      "actions": [
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        },
        {
          "data": null,
          "uid": "sample string 1",
          "type": 0
        }
      ],
      "uid": "sample string 1",
      "title": "sample string 2",
      "type": 0
    }
  ],
  "attachments": [
    {
      "type": 0,
      "typeStr": "image",
      "typeAdditionally": 0,
      "typeAdditionallyStr": "unknown",
      "id": "sample string 1",
      "name": "sample string 2",
      "sha1": "sample string 3",
      "size": 4,
      "contentType": "sample string 5",
      "versions": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    },
    {
      "type": 0,
      "typeStr": "image",
      "typeAdditionally": 0,
      "typeAdditionallyStr": "unknown",
      "id": "sample string 1",
      "name": "sample string 2",
      "sha1": "sample string 3",
      "size": 4,
      "contentType": "sample string 5",
      "versions": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      }
    }
  ],
  "share": {
    "id": 1,
    "uid": "sample string 1",
    "url": "sample string 2",
    "title": "sample string 3",
    "desc": "sample string 4",
    "image": "sample string 5",
    "video": {
      "id": "sample string 1",
      "type": 0
    }
  },
  "messageFormat": 0
}

Response Information

Resource Description

MessageAdvancedView
NameDescriptionTypeAdditional information
author

UserPublicDataView

None.

correspondent

UserPublicDataView

None.

chat

ChatView

None.

id

integer

None.

datecreated

string

None.

datecreatedstr

string

None.

cleanMessage

string

None.

type

UserMessageType

None.

message

string

None.

attachments

Collection of AttachmentView

None.

share

ShareView

None.

attachedActions

Перечень действий с их описанием

Collection of AttachmentEntityView

None.

status

MessageStatus

None.

repost

Репост

RepostView

None.

editorMode

Режим редактирования текста

PostEditorMode

None.

Response Formats

application/json, text/json

Sample:

Sample not available.