BotBuilderCommunity / botbuilder-community-dotnet

Part of the Bot Builder Community Project. Repository for extensions for the Bot Builder .NET SDK, including middleware, dialogs, recognizers and more.
MIT License
278 stars 170 forks source link

Message bird adapter not working #534

Open KarlynG opened 1 year ago

KarlynG commented 1 year ago

Hi. I'm trying to use the MessageBird Adapter Sample but I can't get it to send a reply back. I have a Whatsapp Channel configured in message bird and a Webhook also configured. The request to my webhook URL (to the adapter sample) return 200 but there is no reply back in the Whatsapp chat I'm testing with. I have correctly configured the MessageBirdAccessKey, MessageBirdSigningKey and MessageBirdWebhookEndpointUrl in the appsettings.json.

Just want to add that if I use the MessageBird Conversation Api I can send a message to the chat. The issue is when the code reachs the await turnContext.SendActivityAsync(reply); which is suppose to send a message, is not sending anything at all.

Any help?

Edit: I added this piece of code to test if the application was working as expected with those values and it replies back with the "Test" message. Is there any reason why the default implementation is not working?

client.SendConversationMessage(turnContext.Activity.Conversation.Id, new ConversationMessageSendRequest()
                        {
                            ChannelId = turnContext.Activity.ChannelId,
                            ConversationId = turnContext.Activity.Conversation.Id,
                            Type = ContentType.Text,
                            Content = new Content() { Text = "Test" },
                        });