- 0
Microsoft Teams: Create a new message in a channel
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft Teams for iPad gets external camera support
By TarasBuria,
- microsoft teams
- teams for ipad
- (and 1 more)
- 0 replies
- 0 views
-
- 0 replies
- 0 views
-
Microsoft Teams Public Preview users can now access the new chat and channels experience
By pradeepviswav,
- microsoft
- microsoft teams
- (and 2 more)
- 1 reply
- 0 views
-
Microsoft Teams expands Town Hall limit to a massive 50,000 attendees
By pradeepviswav,
- microsoft
- microsoft teams
- (and 2 more)
- 1 reply
- 0 views
-
Microsoft Teams now allows you to choose a skin tone for emojis and reactions
By pradeepviswav,
- microsoft
- microsoft teams
- (and 3 more)
- 1 reply
- 0 views
-
Question
Farchord
So I am working on setting up a new (private) bot for Microsoft Teams that should be able to post messages in a channel on-demand. I already have a bot coded for Google Hangouts Chat, but Microsoft Teams is giving me a really hard time.
I've been searching for over 10 hours now all over the web, and I am very confused.
Right now, all I want to do is post cards to a Microsoft Teams Channel. So I created the connectorclient, I used the baseuri provided when the bot joined the channel (Starts with smba.trafficmanager.net) with my MSAppID and MSAppPassword. Then, I fill in as much information as I can (Maybe too much?) and I submit the information using the connector's .conversations.createconversation.
Namespaces used: Microsoft.bot.connector, Microsoft.bot.connector.teams.models
Here's the code:
This is what the API returns:
{"message":"Authorization has been denied for this request."} Unauthorized
Keep in mind, I'm not even 100% sure I'm using the right method to create the channel message, I figured it was either CreateConversation or ReplyToActivity.
I gave the app Users.ReadWriteAll permissions too, so am I missing something? That error leads me to think it doesn't have anything to do with the ConversationParameters payload but something to do with authentication.
Thank you.
Link to comment
https://www.neowin.net/forum/topic/1372792-microsoft-teams-create-a-new-message-in-a-channel/Share on other sites
1 answer to this question
Recommended Posts