I am trying to send a message to the user using Graph API but I am getting 401 error through postman.
Is it possible to send proactive message to Microsoft Teams Users via Graph API?
Related
I'm trying to start a proactive conversation with a user using the Slack Bolt SDK for Java but I don't know how to get a client for the Bot token, this is my code so far:
Bot bot = ...; // with botToken, botUserId, botId and so...
ConversationsOpenResponse conversation = app.client().conversationsOpen(conv -> conv
.users(List.of(user.getSlackUserId()))
);
But every request I try to make returns with error=invalid_auth because it's laking the auth token (bot token in this particular case).
Every example I found relies on a context with a client tied to the installer bot.
I'm working on an integration between Microsoft Teams and Slack.
I'm building a Microsoft Teams application which is connected to a Microsoft Bot.
Additionally, I created a server for:
Listening to messages which were sent by users in Slack (via Slack webhooks)
Posting them in Microsoft Teams conversation as a user message to the bot (outgoing message)
I receive messages from Slack (which were sent by a Slack user) to my server and I wish to post them in Microsoft Teams as messages from the user to the bot and I'm not able to do so.
I'm able to send messages from Bot to user in Microsoft Teams app via Microsoft Bot's "botbuilder" Node.js SDK:
session.send(message);
How can I send the message on the other direction (from user to bot)?
You can't. See this question for more info, but the short version is:
The BotFramework has no direct way to do this.
Even the Teams Graph API doesn't currently support this. They're working on it, but don't have an ETA.
The closest thing to a workaround would be:
User writes message in Slack to Bot
Bot receives message and posts a proactive message in Teams, something like:
User #louis1600 said: "blah blah blah"
Resources:
Proactive Messages in Teams
#mention-ing users in Teams with a Bot
The many other Teams Bot related questions I've answered
I have an use case where i have to trigger notifications with card, message and url to bot users when an event has occured at backend. Is there a way to send message to bot users via api
I can send a message to Skype user and I can receive message from him. But I can't get messages that user sent to bot while server is down.
For example, Facebook Messenger Platform will resend the webhook event every 20 seconds, until a 200 OK response is received. Viber also used webhook url. But Skype does not resend to my bot at least 15 minuts.
I realized a simple Echo Bot. The bot messaging endpoint isn't Azure. The bot is not published, but can be added to Skype contacts. I use REST API.
Any help is welcome. Sorry for my bad English
I have published a bot in bot framework and it is working in test window of the bot framework. Then I configured the bot with email channel with office 365 mail. I am getting the error:
There was an error sending this message to your bot: HTTP status code GatewayTimeout
You probably have this message because you did not use your endpoint for some time. One possibility to try to avoid those timeout is to set your published bot to Always On on Azure