XYBotV2协议接口
  1. Message
XYBotV2协议接口
  • Friend
    • /AcceptFriend
      POST
    • /GetContact
      POST
    • /GetContractDetail
      POST
    • /GetContractList
      POST
  • Group
    • /AddChatroomMember
      POST
    • /GetChatroomInfo
      POST
    • /GetChatroomInfoNoAnnounce
      POST
    • /GetChatroomMemberDetail
      POST
    • /GetChatroomQRCode
      POST
    • /InviteChatroomMember
      POST
  • Login
    • /AutoHeartbeatStart
      POST
    • /AutoHeartbeatStatus
      POST
    • /AutoHeartbeatStop
      POST
    • /AwakenLogin
      POST
    • /CheckUuid
      POST
    • /GetCachedInfo
      POST
    • /GetQRCode
      POST
    • /Heartbeat
      POST
    • /LogOut
      POST
  • Tool
    • /CdnDownloadImg
    • /CheckDatabaseOK
    • /DownloadAttach
    • /DownloadImg
    • /DownloadVideo
    • /DownloadVoice
    • /GetCdnDns
    • /IsRunning
    • /SetProxy
    • /SetStep
  • HongBao
    • /GetHongBaoDetail
  • User
    • /GetMyQRCode
    • /GetProfile
  • Message
    • /RevokeMsg
      POST
    • /SendAppMsg
      POST
    • /SendCDNFileMsg
      POST
    • /SendCDNImgMsg
      POST
    • /SendCDNVideoMsg
      POST
    • /SendCardMsg
      POST
    • /SendEmojiMsg
      POST
    • /SendImageMsg
      POST
    • /SendShareLink
      POST
    • /SendTextMsg
      POST
    • /SendVideoMsg
      POST
    • /SendVoiceMsg
      POST
    • /Sync
      POST
  1. Message

/SendTextMsg

POST
/SendTextMsg
Message
发送文本消息

请求参数

Body 参数application/json
At
string 
可选
Content
string 
必需
ToWxid
string 
必需
Type
integer 
可选
Wxid
string 
必需
示例
{
  "At": "string",
  "Content": "string",
  "ToWxid": "string",
  "Type": 0,
  "Wxid": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/SendTextMsg' \
--header 'Content-Type: application/json' \
--data-raw '{
    "At": "string",
    "Content": "string",
    "ToWxid": "string",
    "Type": 0,
    "Wxid": "string"
}'

返回响应

🟢200OK
application/json
Body
Code
integer 
可选
Data
object (mm.NewSendMsgRespone) 
可选
BaseResponse
object (mm.BaseResponse) 
可选
Count
integer 
可选
List
array[object (mm.NewMsgResponeNew) {8}] 
可选
NoKnow
integer 
可选
Message
string 
可选
Success
boolean 
可选
示例
{
  "Code": 0,
  "Data": {
    "BaseResponse": {
      "errMsg": {
        "string": "string"
      },
      "ret": 0
    },
    "Count": 0,
    "List": [
      {
        "ClientMsgid": 0,
        "Createtime": 0,
        "MsgId": 0,
        "NewMsgId": 0,
        "Ret": 0,
        "ToUsetName": {
          "string": "string"
        },
        "Type": 0,
        "servertime": 0
      }
    ],
    "NoKnow": 0
  },
  "Message": "string",
  "Success": true
}
上一页
/SendShareLink
下一页
/SendVideoMsg
Built with