MattTatoczenko
MattTatoczenko

Reputation: 21

Azure Bot Service Welcome Message Issues

I am seeing some odd behavior with some of the initial messages I see when I make first contact with my Azure Bot Service. Bot Service is written in C# and is available in the Bot Directory.

Here's the link to it: https://bots.botframework.com/bot?id=AppServiceDomainChecker

When you chat with it in Facebook Messenger, my initial "Hello"/Welcome message will display twice. If you chat with it on Skype or Microsoft Teams, sometimes the message will play. Sometimes it won't.

The initial run.csx code is here: https://github.com/MattTatoczenko/AppServiceDomainChecker/blob/master/messages/run.csx

The part I am referring to is in the ActivityTypes.ConversationUpdate one, which is supposed to be called when a new member is added to the chat.

Is there anything I can do to be sure this runs once and only once in all channels a user uses to talk with my bot?

Upvotes: 1

Views: 892

Answers (1)

Nox
Nox

Reputation: 1583

Looking at your code, you seem to be using some outdated code. It looks like the examples that were released in the old version 1. I have no issues so far using the newer way of dealing with this which is much cleaner, a little faster, and easier to use. I suggest you change your message controller to follow the conventions laid out here.

Upvotes: 2

Related Questions