[Bug] 知识库不支持图片,未来任务选择send到私聊也会发送到webhook
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
The report names the future task flow and the 企业微信 adapter, but gives no source files or tests. Start by locating how scheduled tasks handle the “send to private chat” choice and how the adapter routes those messages; compare that path with webhook delivery. Done when a task configured for private chat reaches the private chat, while a task configured for a group reaches the group.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
问题描述
1、知识库不支持图片
2、未来任务选择send到私聊也会发送到webhook群里,是否能实现ui上选择私聊就发送私聊,选择群就发送到群,
没测试出来issues也没找到方法不知道是不是配置问题,最终就让ai写了个插件给patch来实现了
如何复现?
1、打开未来任务,添加任务
2、选择send 推送到私聊
3、不会推送到私聊,还是发送到了配置的webhook
AstrBot 版本
4.29.4
操作系统
Linux
部署方式
uv
使用的消息平台适配器
企业微信
错误日志
14:40:04.226] [Core] [INFO] [runners.tool_loop_agent_runner:1185]: Agent 使用工具: ['astrbot_execute_python', 'astrbot_execute_shell']
[14:40:04.227] [Core] [INFO] [runners.tool_loop_agent_runner:1241]: 使用工具:astrbot_execute_python,参数:{'code': '\nimport json, urllib.request\nfrom datetime import datetime\nfrom zoneinfo import ZoneInfo\n\nlat, lon = 34.7466, 113.6254 # 郑州\nurl = (\n "https://api.open-meteo.com/v1/forecast"\n f"?latitude={lat}&longitude={lon}"\n "¤t=temperature_2m,relative_humidity_2m,apparent_temperature,precipitation,weather_code,wind_speed_10m,wind_direction_10m"\n "&hourly=temperature_2m,precipitation_probability,precipitation"\n "&daily=weather_code,temperature_2m_max,temperature_2m_min,precipitation_sum,precipitation_probability_max,sunrise,sunset"\n "&timezone=Asia%2FShanghai&forecast_days=5"\n)\nwith urllib.request.urlopen(url, timeout=20) as r:\n d = json.load(r)\n\nnow = datetime.now(ZoneInfo("Asia/Shanghai"))\nprint("采集时间:", now.strftime("%Y-%m-%d %H:%M"))\nprint("current:", d["current"])\nprint("daily:")\nfor i in range(len(d["daily"]["time"])):\n print(d["daily"]["time"][i], "code=",d["daily"]["weather_code"][i],\n "max=",d["daily"]["temperature_2m_max"][i],"min=",d["daily"]["temperature_2m_min"][i],\n "prec=",d["daily"]["precipitation_sum"][i],"pop=",d["daily"]["precipitation_probability_max"][i],\n "sunrise=",d["daily"]["sunrise"][i][-5:],"sunset=",d["daily"]["sunset"][i][-5:])\n# 今日剩余时段\nh = d["hourly"]\ncur_h = now.hour\nprint("hourly today:")\nfor t,tp,pp,pr in zip(h["time"],h["temperature_2m"],h["precipitation_probability"],h["precipitation"]):\n if t.startswith(d["daily"]["time"][0]) and int(t[11:13]) >= cur_h:\n print(t[11:16], tp, pp, pr)\n'}
[14:40:05.173] [Core] [INFO] [runners.tool_loop_agent_runner:1438]: Tool `astrbot_execute_python` Result: 采集时间: 2026-11-06 14:40
current: {'time': '2026-11-06T14:30', 'interval': 900, 'temperature_2m': 16.3, 'relative_humidity_2m': 45, 'apparent_temperature': 13.4, 'precipitation': 0.0, 'weather_code': 0, 'wind_speed_10m': 10.1, 'wind_direction_10m': 63}
daily:
2026-11-06 code= 3 max= 16.3 min= 9.3 prec= 0.0 pop= 0 sunrise= 06:50 sunset= 17:27
2026-11-07 code= 61 max= 15.6 min= 7.5 prec= 7.8 pop= 100 sunrise= 06:51 sunset= 17:26
2026-11-08 code= 61 max= 13.2 min= 5.6 prec= 2.2 pop= 98 sunrise= 06:52 sunset= 17:25
2026-11-09 code= 1 max= 12.7 min= 2.5 prec= 0.0 pop= 2 sunrise= 06:53 sunset= 17:25
2026-11-10 code= 0 max= 17.1 min= 2.5 prec= 0.0 pop= 0 sunrise= 06:54 sunset= 17:24
hourly today:
14:00 16.2 0 0.0
15:00 16.2 0 0.0
16:00 15.7 0 0.0
17:00 14.2 0 0.0
18:00 12.7 0 0.0
19:00 11.8 0 0.0
20:00 11.0 0 0.0
21:00 10.4 0 0.0
22:00 9.8 0 0.0
23:00 9.6 0 0.0
辅助信息
No response
检查清单
- Ngôn ngữ chính
- Python
- Star
- 46.4k
- Fork
- 3.4k
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 120
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AstrBotDevs/AstrBot
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AstrBotDevs/AstrBot#11038 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
AstrBotDevs/AstrBot#11034 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
AstrBotDevs/AstrBot#10999 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] OpenAI-compatible Gemini 工具 schema const 导致 400Có thể đã có người làm @arccat-114 đã nhận 16 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
AstrBotDevs/AstrBot#10720 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Discord slash command sync aborts with KeyError when a plugin handler is defined in a submoduleCó thể đã có người làm @yuexia5 đã nhận 21 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
AstrBotDevs/AstrBot#10626 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AstrBotDevs/AstrBot
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
volcengine/OpenViking#7347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
duolicious/duolicious#1943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fedora-infra/anitya#2166 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/auto-ontology#486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
NVIDIA/SkillEvaluator#446 ·
Maintainer thường phản hồi trong vòng 2 ngày