[英]Is it possible to add a Reaction to a Microsoft Teams message?
I have a Microsoft Teams bot with a message handler:我有一个带有消息处理程序的 Microsoft Teams 机器人:
async def on_message_activity( # pylint: disable=unused-argument
self, turn_context: TurnContext
):
[...]
Lets say the bot receives a message and the bot wants to add a thumbsup reaction to it.假设机器人收到一条消息,并且机器人想要为其添加竖起大拇指的反应。 I cannot find this in the documentation, is it possible?
我在文档中找不到这个,可能吗?
While there isn't a current sample for adding reactions (closest thing to upvote/downvote I've seen) in python, there is a sample in C# and Node in the botframework sample's repo C# here While there isn't a current sample for adding reactions (closest thing to upvote/downvote I've seen) in python, there is a sample in C# and Node in the botframework sample's repo C# here
That being said, I'm not sure the methods exist in python yet, but you can take a look at it to see what it does.话虽如此,我还不确定 python 中是否存在这些方法,但您可以看一下它的作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.