GraiaProject / Application

一个设计精巧, 协议实现完备的, 基于 mirai-api-http 的即时聊天软件自动化框架.
https://graia-document.vercel.app/
GNU Affero General Public License v3.0
438 stars 63 forks source link

定时长信息发送失败 #168

Closed De3mond closed 2 years ago

De3mond commented 3 years ago

利用schedule定时发送的长信息在log中显示已发送,但是群组中没有该信息。

scheduler = GraiaScheduler(loop, bcc) @scheduler.schedule(crontabify('1 10 * 0')) async def scheduledRemindBookRoom(): outmsg = 长信息 message_remind = MessageChain.create([Plain(outmsg)]) await messages.sendGroupsMessages(app=app, groups_id=[GROUP_ID_NGCS], messages=[message_remind]) app.launch_blocking() loop.run_forever()

log输出正常: https://ftp.bmp.ovh/imgs/2021/09/918751a108b009ee.png