Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP example in send message is wrong #10084

Closed
aosolis opened this issue Dec 11, 2023 · 4 comments · Fixed by #10111
Closed

HTTP example in send message is wrong #10084

aosolis opened this issue Dec 11, 2023 · 4 comments · Fixed by #10111
Assignees
Labels
doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@aosolis
Copy link
Collaborator

aosolis commented Dec 11, 2023

https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet1%2Capp-manifest-v112-or-later%2Chttp%2Cdotnet3%2Cdotnet4%2Cdotnet5%2Cdotnet#send-a-message

The HTTP example is for creating a conversation, not posting a message to a conversation!!!


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Copy link
Contributor

Hi aosolis! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@Meghana-MSFT
Copy link
Collaborator

Thank you for reporting this, we will check this and update the document.

@Meghana-MSFT Meghana-MSFT added teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label and removed needs-triage 🔍 labels Dec 12, 2023
@Meghana-MSFT Meghana-MSFT self-assigned this Dec 12, 2023
@Meghana-MSFT
Copy link
Collaborator

@surbhigupta12 - Could you please help to update this HTTP request and body of https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet1%2Capp-manifest-v112-or-later%2Chttp%2Cdotnet3%2Cdotnet4%2Cdotnet5%2Cdotnet#send-a-message

HTTP Request : {Service URL of your bot}/v3/conversations/{conversationId}/activities

Body :

{
    "type": "message",
    "from": {
        "id": "28:c9e8c047-2a34-40a1-b28a-b162d5f5327c",
        "name": "Teams TestBot"
    },
    "conversation": {
        "id": "a:17I0kl8EkpE1O9PH5TWrzrLNwnWWcfrU7QZjKR0WSfOpzbfcAg2IaydGElSo10tVr4C7Fc6GtieTJX663WuJCc1uA83n4CSrHSgGBj5XNYLcVlJAs2ZX8DbYBPck201w-",
        "name": "Convo1"
   },
   "recipient": {
        "id": "29:1XJKJMvc5GBtc2JwZq0oj8tHZmzrQgFmB25ATiQWA85gQtHieVkKilBZ9XHoq9j7Zaqt7CZ-NJWi7me2kHTL3Bw",
        "name": "Megan Bowen"
    },
    "text": "My bot's reply"
}

@Meghana-MSFT Meghana-MSFT added the doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. label Dec 18, 2023
Copy link
Contributor

Tell us about your experience!

Hi aosolis! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.

Best regards,
Teams Platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Out of date, unclear, confusing, typo, or broken - including missing information. teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants