简体   繁体   English

有没有办法检测用户是从团队移动应用程序还是桌面应用程序打字?

[英]Is there a way to detect whether a user is typing from teams mobile app or desktop app?

I am developing a bot which can send files to user.我正在开发一个可以向用户发送文件的机器人。 Users ask for reports with report name, and bot generates the file and sends it.用户要求提供报告名称的报告,bot 生成文件并发送。 This is working like expected within Microsoft Teams desktop app and web app.这在 Microsoft Teams 桌面应用程序和 Web 应用程序中按预期工作。 And Microsoft Teams mobile app does not support to receive files.并且 Microsoft Teams 移动应用程序不支持接收文件。

If there is a way to detect the application that user is typing to bot, i want to inform users when they ask a file from bot with mobile app, like "use desktop or web app, file transfer is not supported on mobile app".如果有一种方法可以检测用户正在向 bot 输入的应用程序,我想在用户通过移动应用程序从 bot 请求文件时通知用户,例如“使用桌面或网络应用程序,移动应用程序不支持文件传输”。

Is there a way to detect the application that Microsft Teams user is using to type to bot?有没有办法检测 Microsft Teams 用户用来输入机器人的应用程序?

Yes, you could get the platform from which the message was sent.是的,您可以获取发送消息的平台。 Could you please check activity.Entity .你能不能检查一下activity.Entity Please find the screenshots below:请在下面找到屏幕截图:

Desktop:桌面: 在此处输入图片说明

Mobile:移动的: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 团队 Web 和桌面应用程序中的团队自定义应用程序身份验证弹出问题 - Teams Custom App Authentication popup issue in teams web and desktop application 无法使用 ACS 从客户端应用程序开始呼叫团队用户 - Cannot Start Call from client app to teams user using ACS 是否可以使用 .net 检测来自 Windows 桌面应用程序的音频? - Is it possible to detect audio coming from a Windows desktop app using .net? 确保Windows Mobile应用程序未运行-从桌面应用程序 - Ensuring Windows Mobile application is not running - From a desktop app 如何检测用户是否在桌面上 C# winforms - How to detect whether user is on the desktop C# winforms 如何以编程方式获取 MS Teams(桌面应用程序)语言? - How to get MS Teams (Desktop App) language programmatically? 如何使用用户代理检测来自台式机或移动设备的请求? - How can I use User Agent to detect request is Coming from desktop or mobile? 如何在.net中正确同步桌面和移动应用程序? - How to properly synchronize desktop and mobile app in .net? 如何判断是否从桌面或cmd shell启动了C#应用程序? - How can I figure out whether a C# app was launched from the desktop or the cmd shell? 自适应卡片提交操作在 iOS 移动应用程序上的 MS Teams 中不起作用 - Adaptive card Submit Actions are not working in MS Teams on iOS mobile app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM