veops / messenger

一个简单轻量的消息发送服务
https://veops.cn
Apache License 2.0
55 stars 19 forks source link

About the atUserIds parameter of dingdingBot #3

Closed duliang123 closed 9 months ago

duliang123 commented 9 months ago

Dingding Normal group: The atUserIds parameter is not supported (only for Internal group of enterprises). So I had to modify the atUserIds parameter to: atMobiles. Then @someone works!

at["isAtAll"] = lo.Contains(msg.Ats, "@all") at["atMobiles"] = lo.Without(msg.Ats, "@all")

ttktatakai commented 9 months ago

Is seems that dingding custom bot has been not supported in external group.

image

duliang123 commented 9 months ago

ternal g

This: https://open.dingtalk.com/document/orgapp/webhook-bot-offline-notice

ttktatakai commented 9 months ago

ternal g

This: https://open.dingtalk.com/document/orgapp/webhook-bot-offline-notice

I have checked the link you provided and since custom bot is not supported in external any more(your normal group means external group, right?), I donot have environment to test it. Sorry for this inconvenience. But it may be a good idea to add some parameters to distinguish at by user id or at by mobile.

duliang123 commented 9 months ago

ternal g

This: https://open.dingtalk.com/document/orgapp/webhook-bot-offline-notice

I have checked the link you provided and since custom bot is not supported in external any more(your normal group means external group, right?), I donot have environment to test it. Sorry for this inconvenience. But it may be a good idea to add some parameters to distinguish at by user id or at by mobile.

Yes, My Normal Group means external group. Add some parameters to distinguish at by user id or at by mobile, That's good!

ttktatakai commented 9 months ago

ternal g

This: https://open.dingtalk.com/document/orgapp/webhook-bot-offline-notice

I have checked the link you provided and since custom bot is not supported in external any more(your normal group means external group, right?), I donot have environment to test it. Sorry for this inconvenience. But it may be a good idea to add some parameters to distinguish at by user id or at by mobile.

Yes, My Normal Group means external group. Add some parameters to distinguish at by user id or at by mobile, That's good!

May check this one https://github.comhttps://github.com/veops/messenger/pull/5

duliang123 commented 9 months ago

ternal g

This: https://open.dingtalk.com/document/orgapp/webhook-bot-offline-notice

I have checked the link you provided and since custom bot is not supported in external any more(your normal group means external group, right?), I donot have environment to test it. Sorry for this inconvenience. But it may be a good idea to add some parameters to distinguish at by user id or at by mobile.

Yes, My Normal Group means external group. Add some parameters to distinguish at by user id or at by mobile, That's good!

May check this one #5

Done! It works, thanks.

ttktatakai commented 9 months ago

@duliang123 Based on my testing, at by moblie is not fully supported in all of wechat, feishu and dingding as at by user id. Try to use at by user id whenever you can :)