"use strict";(self.webpackChunkzhenxun_docs=self.webpackChunkzhenxun_docs||[]).push([[296],{597:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>c});var o=n(4848),s=n(8453);const r={title:"\u6d88\u606f\u64a4\u56de",subSidebar:!1},a=void 0,i={id:"development/withdraw",title:"\u6d88\u606f\u64a4\u56de",description:"\u6d88\u606f\u64a4\u56de",source:"@site/docs/development/withdraw.md",sourceDirName:"development",slug:"/development/withdraw",permalink:"/zhenxun_bot/development/withdraw",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/development/withdraw.md",tags:[],version:"current",frontMatter:{title:"\u6d88\u606f\u64a4\u56de",subSidebar:!1},sidebar:"devSidebar",previous:{title:"\u6d88\u606f\u53d1\u9001",permalink:"/zhenxun_bot/development/message"},next:{title:"\u4fbf\u6377\u65b9\u6cd5",permalink:"/zhenxun_bot/development/utility_methods"}},d={},c=[{value:"\u6d88\u606f\u64a4\u56de",id:"\u6d88\u606f\u64a4\u56de",level:2}];function m(e){const t={code:"code",h2:"h2",pre:"pre",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h2,{id:"\u6d88\u606f\u64a4\u56de",children:"\u6d88\u606f\u64a4\u56de"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-python",children:'from nonebot import on_command, Bot\nfrom zhenxun.utils.withdraw_manage import WithdrawManager\nfrom zhenxun.utils.message import MessageUtils\n\n_matcher = on_command("test")\n\n@_matcher.handle()\nasync def _(bot: Bot):\n receipt = await MessageUtils.build_message("123").send()\n message_id = receipt.msg_ids[0]["message_id"]\n # 10\u79d2\u540e\u64a4\u56de\u6d88\u606f\n WithdrawManager.append(\n bot,\n message_id,\n 10,\n )\n'})})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>i});var o=n(6540);const s={},r=o.createContext(s);function a(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);