-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 🐛 TG 无法发送至指定话题 #25
Comments
查看 tg 适配器源码,发现其读取的是 session 的guildId 将报告代码修改为 const messageIds = await ctx.broadcast([target.platform+':'+target.channelId], payload) 即可正常工作 |
已发布 4.0.1,请在更新后重新填写频道 ID |
依旧还是无法正常运行,能需要修改报告的那一行代码才可以运行 |
截图配置 |
constants:
TgFeed:
type: full
platform: telegram
selfId: '67****'
channelId: '5'
name: TG Feed
TgAsk:
type: full
platform: telegram
selfId: '67****'
channelId: '4'
name: TG 求助提问
TgChat:
type: full
platform: telegram
selfId: '67****'
channelId: '-10****'
name: TG 闲聊灌水
TgFeature:
type: full
platform: telegram
selfId: '67****'
channelId: '206'
name: TG 功能需求
QQFeed:
type: full
platform: qqguild
selfId: '82****'
channelId: '63****'
name: QQ Feed
QQAsk:
type: full
platform: qqguild
selfId: '82****'
channelId: '63****'
name: QQ频道 求助提问
QQChat:
type: full
platform: qqguild
selfId: '82****'
channelId: '63****'
name: QQ频道 闲聊灌水
QQFeature:
type: full
platform: qqguild
selfId: '82****'
channelId: '63****'
name: QQ频道 功能需求
rules:
- targets:
- QQFeed
source: TgFeed
- targets:
- TgFeed
source: QQFeed
- targets:
- TgAsk
source: QQAsk
- targets:
- QQAsk
source: TgAsk
- targets:
- TgChat
source: QQChat
- targets:
- QQChat
source: TgChat
- targets:
- TgFeature
source: QQFeature
- targets:
- QQFeature
source: TgFeature |
channelId 不对,请使用 inspect 插件获取 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本信息
Koishi 4.16.8
@myrtus/koishi-plugin-forward 3.9.1
配置文件
日志文件
猜测可能下面这行代码导致
forward/src/core.ts
Line 183 in 39823e0
Koishi 的 bot.sendMessage 方法不支持 guildId 了,文档:https://koishi.chat/zh-CN/api/resources/message.html#bot-getmessage
可能需要特殊判断,使用 telegram 适配器内部方法 internal.sendMessage() 代替
The text was updated successfully, but these errors were encountered: