MSBot not responding on on opening the bot. No Welcome messaged received

て烟熏妆下的殇ゞ 提交于 2020-02-14 02:24:12

问题


I have created and deployed bot using a sample bot Welcome-Bot example given in Azure portal docs. This bot shows a welcome message whenever the bot is joined or started. It shows welcome message when I test it on emulator. But when I deploy it to Azure and test in Test Web App chat or Teams it doesn't show me Welcome message. It show me the welcome message when I query something, i.e. it gives two responses : one is the welcome message and other one is the reply of the query asked .


回答1:


For Microsoft Teams, you need to create an app manifest using App Studio and install in your personal scope.

For 1:1 bot conversation, ConversationUpdate event gets fired only for the first time. Only possible option to test welcome message is by installing your bot with a different user. For team scope this event is raised every time you install your app. You could test your welcome message in team scope if it helps.

Note: Here is how you can synthesize a fake event conversation update event and simulate the bot receiving it.



来源:https://stackoverflow.com/questions/55181264/msbot-not-responding-on-on-opening-the-bot-no-welcome-messaged-received

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!