POST api/SendMessage

Request Information

URI Parameters

None.

Body Parameters

Chat
NameDescriptionTypeAdditional information
token

string

None.

message

string

None.

image

Collection of byte

None.

receiver

string

None.

chat_id

integer

None.

reply_message_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "message": "sample string 2",
  "image": "QEA=",
  "receiver": "sample string 3",
  "chat_id": 4,
  "reply_message_id": 5
}

application/xml, text/xml

Sample:
<Chat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChannelAPI.Classes">
  <chat_id>4</chat_id>
  <image>QEA=</image>
  <message>sample string 2</message>
  <receiver>sample string 3</receiver>
  <reply_message_id>5</reply_message_id>
  <token>sample string 1</token>
</Chat>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Chat'.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.