Hello,
Thanks for reaching out to us. I think you are looking for the code sample for How to handle attachment in Node.js, please refer to below Repo with the code sample:
I hope above helps.
Regards,
Yutong
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am doing unit test for my bot written in node.js based on the Microsoft document https://learn.microsoft.com/en-us/azure/bot-service/unit-test-bots?view=azure-bot-service-4.0&tabs=javascript.
In the test, I can create a client object and make the client send text to the bot like
const reply = await client.sendActivity('hi!');
assert.strictEqual(reply, expected_reply);
But my bot was designed to also be able to receive attachments from users, how can I make the client send an attachment to the bot so that I can test how the bot would react?
Hello,
Thanks for reaching out to us. I think you are looking for the code sample for How to handle attachment in Node.js, please refer to below Repo with the code sample:
I hope above helps.
Regards,
Yutong