Skip to content

如何自定义event或主动发送消息? #30

Answered by yanyongyu
Viottery asked this question in 问答
Discussion options

You must be logged in to vote

在定时任务中直接调用api进行发送

例如

bot = nonebot.get_bot()
await bot.send_private_msg(message=xxx)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Viottery
Comment options

Answer selected by stdrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
2 participants