如何修复错误“您的凭据类不支持会话注入。性能不会达到最大值。“发送消息时发送消息?

2024-10-02 18:27:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是python botbuilder sdk,当服务器发送任何消息时,它会将以下消息打印到控制台: Your credentials class does not support session injection. Performance will not be at the maximum.

我试着下载在github上找到的示例,但问题仍然存在。在

我正在发送的消息。在

credentials = MicrosoftAppCredentials(APP_ID, APP_PASSWORD)
connector = ConnectorClient(credentials, base_url=activity.service_url)
reply = self.buildReply(activity, activity.text)
connector.conversations.send_to_conversation(reply.conversation.id, reply)

未知消息似乎来自send_to_conversation函数。在

任何关于它为什么出现的见解都会有帮助。谢谢您!在


Tags: tosendapp消息urlyourconnectorsdk
1条回答
网友
1楼 · 发布于 2024-10-02 18:27:41

Python Bot Builder SDK使用msrest-for-python。{a1}如果显示的是^ a1}的消息,则不能看到该消息。您可以在Bot Builder源代码中看到^{}不包含这两个方法中的任何一个。有了这些信息,您可以在GitHub上的Bot Builder Python repo中提出一个问题:https://github.com/microsoft/botbuilder-python/issues

相关问题 更多 >