Difficulty accessing messages in an existing conversation in the Microsoft Bot Framework

I am trying to create a separate application - basically a daemon running on my intranet - that can connect to the Bot Connector application and gain access to an existing conversation between the user and the bot.

To start with this, I use the DirectLine NuGet package, and then look at existing messages using the dialog found in the conversation that I started with the bot through the emulator.

For example, I activated the emulator and got the dialogue "8a684db8". In my console application, I have the following code:

var uri = new Uri("https://directline.botframework.com");
            DirectLineClientCredentials creds = new DirectLineClientCredentials(secret); //lot into the bot framework
            DirectLineClient client = new DirectLineClient(uri, creds); //connect the client
            Conversations convs = new Conversations(client); //get the list of conversations belonging to the bot? Or does this start a new collection of conversations?
            var existing_conv_messages = convs.GetMessages(convo_id);

Now, when I try to run it, I get a "Not Found" error in the last line, where I tried to find existing messages.

Anyone have a solution?

0
1

, , API . Direct Line, - Connector Direct Line.

0

Source: https://habr.com/ru/post/1660592/


All Articles