关于markdown发送的问题 #17
Unanswered
TianPingRain
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`@bot.command(name="test")
async def test(ctx: commands.Context):
markdown = qq.Markdown(template_id=65, custom_template_id=None, content=None)
markdown.with_keyboard()
markdown.set_attribute(key="key", value="value")
channel = bot.get_channel(ctx.channel.id)
await channel.send(mention_author=ctx.author,
markdown=markdown,
delete_after=10, msg_id='MESSAGE_CREATE', reference=ctx.message)
想通过这段代码send一个含有markdown的消息,请问问题出现在哪里,或者可以麻烦提供一个正确发送markdown的示例吗,非常感谢。
Beta Was this translation helpful? Give feedback.
All reactions