botframework - 如何使用机器人框架在团队频道的自适应卡片中添加提及
问题描述
我试图在自适应卡的帮助下在 ms 团队频道中提及用户,但没有适当的文档,并且此处给出的解决方案示例不起作用?有没有人试过请帮忙
解决方案
你用的是JS吗?我刚刚发布了一个类似的问题,但它为用户提供了一个有效的解决方案。我试图提到一个机器人。 这是我刚刚提交的帖子
CardFactory.adaptiveCard({
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
type: 'AdaptiveCard',
msteams: {
entites: [
{
type: 'mention',
text: '<at>(username)</at>',
mentioned: {
id: <userID>,
name: <username>,
role: 'user'
}
}
]
}
body: [
{
type: 'TextBlock',
text: '<at>(userName)</at>',
}
]
});
这是我举的例子
推荐阅读
- java - 未检测到 Spring MessageSource 属性文件第一行
- typescript - TypeScript 通用接口,仅具有使用特定模板参数值定义的属性
- javascript - 您如何以设定的时间间隔重复 javascript 函数设定的次数?
- python - 从自定义索引安装嵌套依赖项
- r - 在密度图顶部添加文本标签以标记不同的组
- javascript - 在 1 个控制器操作中多次更新视图
- javascript - 如何在 JSDocs 中表示具有默认值的可选对象参数?
- r - RShiny Reactive data frame manipulation in dplyr using selected input
- sql - 在 IST 时区获取 DB2 查询中的当前时间戳
- ruby-on-rails - 使用 Minitest、Capybara、Factorybot 和 Database Cleaner 时如何设置 test_helper.rb