import{_ as d,W as B,X as y,Y as l,Z as s,$ as o,a0 as t,a1 as r,D as p}from"./framework-a17ef302.js";const h={},b=l("h1",{id:"消息段",tabindex:"-1"},[l("a",{class:"header-anchor",href:"#消息段","aria-hidden":"true"},"#"),s(" 消息段")],-1),u=l("p",null,"本项目目前实现了部分标准消息段及拓展消息段",-1),k=l("div",{class:"hint-container tip"},[l("p",{class:"hint-container-title"},"onebot12"),l("p",null,[l("code",null,"消息段:"),s(" 表示聊天消息的一个部分,在一些平台上,聊天消息支持图文混排,其中就会有多个消息段,分别表示每个图片和每段文字。")])],-1),A={id:"纯文本",tabindex:"-1"},x=l("a",{class:"header-anchor",href:"#纯文本","aria-hidden":"true"},"#",-1),g=r('

type: text

表示一段纯文本。

',3),F=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"text")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"纯文本内容")])])],-1),_=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"text"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"text"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"这是一个纯文本"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),m=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," MessageSegment."),l("span",{style:{color:"#61AFEF"}},"text"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#98C379"}},'"这是一个纯文本"'),l("span",{style:{color:"#ABB2BF"}},")")]),s(` `),l("span",{class:"line"})])])],-1),f={id:"提及-即",tabindex:"-1"},C=l("a",{class:"header-anchor",href:"#提及-即","aria-hidden":"true"},"#",-1),v=r('

type: mention

表示at某人。

注意场景

此消息段只有在群聊时才可使用

',4),E=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"user_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"提及用户的id")])])],-1),D=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"mention"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"user_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"1234567"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),j=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," MessageSegment."),l("span",{style:{color:"#61AFEF"}},"mention"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#E06C75","font-style":"italic"}},"user_id"),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#98C379"}},'"123456"'),l("span",{style:{color:"#ABB2BF"}},")")]),s(` `),l("span",{class:"line"})])])],-1),w={id:"提及所有人",tabindex:"-1"},S=l("a",{class:"header-anchor",href:"#提及所有人","aria-hidden":"true"},"#",-1),M=r('

type: mention_all

表示at所有人。

注意权限

没有at所有人权限,请不要尝试发送此消息段

',4),I=l("p",null,"无。",-1),N=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"mention_all"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {}")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),V=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," MessageSegment."),l("span",{style:{color:"#61AFEF"}},"mention_all"),l("span",{style:{color:"#ABB2BF"}},"()")]),s(` `),l("span",{class:"line"})])])],-1),T={id:"图片",tabindex:"-1"},W=l("a",{class:"header-anchor",href:"#图片","aria-hidden":"true"},"#",-1),X=r('

type:image

表示一张图片。

',3),Y=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"图片文件 ID")])])],-1),Z=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"image"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),$=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," MessageSegment."),l("span",{style:{color:"#61AFEF"}},"image"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#E06C75","font-style":"italic"}},"file_id"),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"'),l("span",{style:{color:"#ABB2BF"}},")")]),s(` `),l("span",{class:"line"})])])],-1),q={id:"语音",tabindex:"-1"},z=l("a",{class:"header-anchor",href:"#语音","aria-hidden":"true"},"#",-1),G=r('

type: voice

表示一段语音消息。

',3),H=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"语音文件 ID")])])],-1),J=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"voice"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),K=l("p",null,null,-1),L={id:"音频",tabindex:"-1"},O=l("a",{class:"header-anchor",href:"#音频","aria-hidden":"true"},"#",-1),P=l("p",null,[s("type: "),l("code",null,"audio")],-1),Q=l("p",null,"音频文件。",-1),R=l("div",{class:"hint-container warning"},[l("p",{class:"hint-container-title"},"未实现"),l("p",null,"本应用未实现此字段")],-1),U={id:"视频",tabindex:"-1"},ll=l("a",{class:"header-anchor",href:"#视频","aria-hidden":"true"},"#",-1),sl=r('

type: video

视频消息

',3),tl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"视频文件 ID")])])],-1),el=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"video"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),al=l("p",null,null,-1),nl={id:"文件",tabindex:"-1"},ol=l("a",{class:"header-anchor",href:"#文件","aria-hidden":"true"},"#",-1),cl=r('

type: file

文件消息

',3),il=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"文件 ID")])])],-1),rl=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"file"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),pl=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," MessageSegment."),l("span",{style:{color:"#61AFEF"}},"file"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#E06C75","font-style":"italic"}},"file_id"),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"'),l("span",{style:{color:"#ABB2BF"}},")")]),s(` `),l("span",{class:"line"})])])],-1),dl={id:"位置",tabindex:"-1"},Bl=l("a",{class:"header-anchor",href:"#位置","aria-hidden":"true"},"#",-1),yl=r('

type: location

位置消息。

',3),hl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"latitude")]),l("td",{style:{"text-align":"center"}},"float64"),l("td",{style:{"text-align":"center"}},"纬度")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"longitude")]),l("td",{style:{"text-align":"center"}},"float64"),l("td",{style:{"text-align":"center"}},"经度")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"title")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"标题")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"content")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"地址内容")])])],-1),bl=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"location"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"latitude"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#D19A66"}},"31.032315"),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"longitude"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#D19A66"}},"121.447127"),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"title"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"上海交通大学闵行校区"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"content"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"中国上海市闵行区东川路800号"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),ul={id:"回复",tabindex:"-1"},kl=l("a",{class:"header-anchor",href:"#回复","aria-hidden":"true"},"#",-1),Al=r('

type: reply

回复消息。

wechat

在微信里,为引用消息

',4),xl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"message_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"回复的消息 ID")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"user_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"回复的消息发送者 ID")])])],-1),gl=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"reply"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"message_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"6283"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"user_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"1234567"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),Fl=l("p",null,null,-1),_l={id:"表情",tabindex:"-1"},ml=l("a",{class:"header-anchor",href:"#表情","aria-hidden":"true"},"#",-1),fl=r('

type: wx.emoji

表示表情消息

与图片区别

在微信里,图片消息指直接发送图片;而表情为动态gif表情包等

',4),Cl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"图片文件 ID")])])],-1),vl=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"wx.emoji"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),El=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#61AFEF"}},"MessageSegment"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#98C379"}},'"wx.emoji"'),l("span",{style:{color:"#ABB2BF"}},",{"),l("span",{style:{color:"#98C379"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},":"),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"'),l("span",{style:{color:"#ABB2BF"}},"})")]),s(` `),l("span",{class:"line"})])])],-1),Dl={id:"链接",tabindex:"-1"},jl=l("a",{class:"header-anchor",href:"#链接","aria-hidden":"true"},"#",-1),wl=r('

type: wx.link

文章链接消息

',3),Sl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"title")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"文章标题")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"des")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"消息卡片摘要")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"url")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"文章链接")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"file_id")]),l("td",{style:{"text-align":"center"}},"可选,string"),l("td",{style:{"text-align":"center"}},"消息图片id")])])],-1),Ml=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"wx.link"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"title"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"发一篇文章"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"des"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"你干嘛,哎哟"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"url"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"http://www.baidu.com"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),Il=l("div",{class:"language-python","data-ext":"py"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#C678DD","font-style":"italic"}},"from"),l("span",{style:{color:"#ABB2BF"}}," nonebot.adapters.onebot.v12 "),l("span",{style:{color:"#C678DD","font-style":"italic"}},"import"),l("span",{style:{color:"#ABB2BF"}}," MessageSegment")]),s(` `),l("span",{class:"line"}),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"message "),l("span",{style:{color:"#56B6C2"}},"="),l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#61AFEF"}},"MessageSegment"),l("span",{style:{color:"#ABB2BF"}},"("),l("span",{style:{color:"#98C379"}},'"wx.link"'),l("span",{style:{color:"#ABB2BF"}},",{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#98C379"}},'"title"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"发一篇文章"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#98C379"}},'"des"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"你干嘛,哎哟"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#98C379"}},'"url"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"http://www.baidu.com"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#98C379"}},'"file_id"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"e30f9684-3d54-4f65-b2da-db291a477f16"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," })")]),s(` `),l("span",{class:"line"})])])],-1),Nl={id:"小程序",tabindex:"-1"},Vl=l("a",{class:"header-anchor",href:"#小程序","aria-hidden":"true"},"#",-1),Tl=r('

type: wx.app

小程序消息

',3),Wl=l("table",null,[l("thead",null,[l("tr",null,[l("th",{style:{"text-align":"center"}},"字段名"),l("th",{style:{"text-align":"center"}},"数据类型"),l("th",{style:{"text-align":"center"}},"说明")])]),l("tbody",null,[l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"appid")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"小程序id")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"title")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"消息标题")]),l("tr",null,[l("td",{style:{"text-align":"center"}},[l("code",null,"url")]),l("td",{style:{"text-align":"center"}},"string"),l("td",{style:{"text-align":"center"}},"链接地址")])])],-1),Xl=l("div",{class:"language-json","data-ext":"json"},[l("pre",{class:"shiki one-dark-pro",style:{"background-color":"#282c34"},tabindex:"0"},[l("code",null,[l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"{")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"type"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"wx.app"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"data"'),l("span",{style:{color:"#ABB2BF"}},": {")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"appid"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"abcd"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"title"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"肯德基疯狂星期四"'),l("span",{style:{color:"#ABB2BF"}},",")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," "),l("span",{style:{color:"#E06C75"}},'"url"'),l("span",{style:{color:"#ABB2BF"}},": "),l("span",{style:{color:"#98C379"}},'"http://www.baidu.com"')]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}}," }")]),s(` `),l("span",{class:"line"},[l("span",{style:{color:"#ABB2BF"}},"}")]),s(` `),l("span",{class:"line"})])])],-1),Yl=l("p",null,null,-1);function Zl($l,ql){const c=p("Badge"),i=p("Tabs");return B(),y("div",null,[b,u,k,l("h2",A,[x,s(" 纯文本"),o(c,{text:"标准",type:"success"})]),g,o(i,{id:"32",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[F]),tab1:t(({title:e,value:a,isActive:n})=>[_]),tab2:t(({title:e,value:a,isActive:n})=>[m]),_:1}),l("h2",f,[C,s(" 提及(即 @)"),o(c,{text:"标准",type:"success"})]),v,o(i,{id:"96",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[E]),tab1:t(({title:e,value:a,isActive:n})=>[D]),tab2:t(({title:e,value:a,isActive:n})=>[j]),_:1}),l("h2",w,[S,s(" 提及所有人"),o(c,{text:"标准",type:"success"})]),M,o(i,{id:"160",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[I]),tab1:t(({title:e,value:a,isActive:n})=>[N]),tab2:t(({title:e,value:a,isActive:n})=>[V]),_:1}),l("h2",T,[W,s(" 图片"),o(c,{text:"标准",type:"success"})]),X,o(i,{id:"194",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[Y]),tab1:t(({title:e,value:a,isActive:n})=>[Z]),tab2:t(({title:e,value:a,isActive:n})=>[$]),_:1}),l("h2",q,[z,s(" 语音"),o(c,{text:"标准",type:"success"})]),G,o(i,{id:"253",data:[{title:"参数"},{title:"示例"}]},{tab0:t(({title:e,value:a,isActive:n})=>[H]),tab1:t(({title:e,value:a,isActive:n})=>[J,K]),_:1}),l("h2",L,[O,s(" 音频"),o(c,{text:"标准",type:"success"})]),P,Q,R,l("h2",U,[ll,s(" 视频"),o(c,{text:"标准",type:"success"})]),sl,o(i,{id:"326",data:[{title:"参数"},{title:"示例"}]},{tab0:t(({title:e,value:a,isActive:n})=>[tl]),tab1:t(({title:e,value:a,isActive:n})=>[el,al]),_:1}),l("h2",nl,[ol,s(" 文件"),o(c,{text:"标准",type:"success"})]),cl,o(i,{id:"385",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[il]),tab1:t(({title:e,value:a,isActive:n})=>[rl]),tab2:t(({title:e,value:a,isActive:n})=>[pl]),_:1}),l("h2",dl,[Bl,s(" 位置"),o(c,{text:"标准",type:"success"})]),yl,o(i,{id:"444",data:[{title:"参数"},{title:"示例"}]},{tab0:t(({title:e,value:a,isActive:n})=>[hl]),tab1:t(({title:e,value:a,isActive:n})=>[bl]),_:1}),l("h2",ul,[kl,s(" 回复"),o(c,{text:"标准",type:"success"})]),Al,o(i,{id:"538",data:[{title:"参数"},{title:"示例"}]},{tab0:t(({title:e,value:a,isActive:n})=>[xl]),tab1:t(({title:e,value:a,isActive:n})=>[gl,Fl]),_:1}),l("h2",_l,[ml,s(" 表情"),o(c,{text:"拓展",type:"danger"})]),fl,o(i,{id:"613",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[Cl]),tab1:t(({title:e,value:a,isActive:n})=>[vl]),tab2:t(({title:e,value:a,isActive:n})=>[El]),_:1}),l("h2",Dl,[jl,s(" 链接"),o(c,{text:"拓展",type:"danger"})]),wl,o(i,{id:"672",data:[{title:"参数"},{title:"示例"},{title:"nb2使用"}]},{tab0:t(({title:e,value:a,isActive:n})=>[Sl]),tab1:t(({title:e,value:a,isActive:n})=>[Ml]),tab2:t(({title:e,value:a,isActive:n})=>[Il]),_:1}),l("h2",Nl,[Vl,s(" 小程序"),o(c,{text:"拓展",type:"danger"})]),Tl,o(i,{id:"764",data:[{title:"参数"},{title:"示例"}]},{tab0:t(({title:e,value:a,isActive:n})=>[Wl]),tab1:t(({title:e,value:a,isActive:n})=>[Xl,Yl]),_:1})])}const Gl=d(h,[["render",Zl],["__file","index.html.vue"]]);export{Gl as default};