Forum Discussion
MessageId undefined when creating a message
Hi Meghana-MSFT , thanks for your response.
Meghana-MSFT wrote:- I used this sample to send attachment to a bot - https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore/56.teams-file-upload.
- I used bot not connector API.
- I use nodeJS, so I have tried with this sample, but it has the same issue. The context.
- For your information, bot sdk uses the Connector API under the hood, so by using the bot sdk, we are using the Connector API.
=> Graph API doesn't support sending message as a bot as stated in its docs here (only delegated permissions work, not application permissions) : https://learn.microsoft.com/en-us/graph/api/chat-post-messages?view=graph-rest-1.0&tabs=http#permissions
Meghana-MSFT wrote:Could you please clarify what your bot and Graph API do not support, your exact requirement? Thank you.
- Meghana-MSFTOct 26, 2022Former EmployeeWe are raising a bug for this issue, we will keep you posted on the updates.
- GuillaumeStDOct 26, 2022Copper Contributor
Meghana-MSFT Exactly, but it should return its message/activity ID since it was posted successfully. Can you request this fix to the Microsoft dev team working on it ?
- Meghana-MSFTOct 21, 2022Former Employee
GuillaumeStD - We did setup the nodejs sample and saw that https://github.com/microsoft/BotBuilder-Samples/blob/b578bbe1127827db86baba670cd0f81e1ae359fb/samples/javascript_nodejs/56.teams-file-upload/bots/teamsFileUploadBot.js#L98 does not return anything when attachment is uploaded using below option.
- GuillaumeStDOct 20, 2022Copper Contributor
Meghana-MSFT any update so far ?