question

nitinsharma-0218 avatar image
0 Votes"
nitinsharma-0218 asked SharonZhao-MSFT commented

Bot is not sending welcome message on user added. working fine on webchat

Hi,

I have deployed my bot on azure portal and added Teams in channels.

In 'Test in Web Chat' bot is sending welcome message and working as expected.
I am sharing my bot from bot url(got from channels list).
But when bot is added by new user it is not sending welcome message untill user send his first message.

How can i solve it? I am struggling from 15 days.

Pls help.

office-teams-app-devazure-bot-service
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Sorry I am a little bit confused about your scenario. Could you please share more details like how you developed your bot by bot frameworks or ? If you are referring to any document could you please share it to us?


Regards,
Yutong

0 Votes 0 ·

Hi @YutongTie-MSFT thanks for reply .

My Flow
1- Created Azure bot in python.(focusing on member added activity and send message activity only)
2- Deployed Bot on azure and changed messaging endpoint of bot with my api url where i want these activities responses

3- Added teams in bot channels.

4- Share the bot URL to teams client.

Problem -> If i run this bot in 'Test in Web Chat' its working fine. I mean It is providing me OnMembersAdded activity response automatically.

But if client add this bot to Teams then I am not getting OnMembersAdded activity response automatically. Client has to send his first message. If he sends message then after i get this activity.


On Client Added To Teams-> No response.
Client sends his first message -> Getting OnMembersAdded activity response + OnMessage activity response

This OnMembersAdded Activity should be trigger when member is added not after sending first message.

0 Votes 0 ·

@nitinsharma-0218
As we are mainly responsible for general question of Microsoft Teams, your question related to app development is not supported by us. I will remove office-teams-windows-itpro tag. Thanks for your understanding.

0 Votes 0 ·

Thanks @SharonZhao-MSFT for reply.

Can you please suggest me where i can post my issues then?

0 Votes 0 ·

@NitinS-1896
The remaining tags are suitable for your requirement.

0 Votes 0 ·

0 Answers