I have successfully created a webhook for my teams channel. I am following this guide here https://learn.microsoft.com/en-us/outlook/actionable-messages/send-via-connectors. I can send simple message to teams like {"text":"testing","title":"Alert from postman","textFormat":"markdown"}
I am unable to send MessageCards
error as below
It doesn't like anything "#" in the json , if i remove them i get bad request, What am doing wrong?
Related
I would like to send messages to users through Slackbot, just like integration apps such as Zapier.
If I set the channel ID to the user ID it sends a 1:1 message showing up in the Apps tab, but what I really would like to do is to send a message in Slackbot, as I want to create a seamless experience for a Workflow I'm creating.
Then, if I try adding the Slackbot channel ID it returns channel_not_found and there's no way to add the App there.
My current bot token scope to send messages is: chat:write and I'm sending a message using chat.postMessage
Do I need a different scope? Different API method? I've tried going through some other questions/answers, but they look outdated
I am using the Bot Framework Rest API with Node. I am successfully sending reply messages upon a user sending a message (in MS Teams).
I am now trying to start a conversation, to which the response comes back successful, with a conversation id.
( POST /v3/conversations returns me an id - great!)
Then, I try to send a message to that conversation id and I keep getting Service error 'Unknown'. I have tried everything..
Get token function (works fine)
Create a conversation (works fine)
Using the conversationId above, send a message (Not working):
I am following the documentation provided:
https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#create-conversation
Step 1, create a conversation:
Step 2, send message using conversation id from above:
I see nobody is posting so in case someone finds this and wants more detail, here is an on-going conversation about it - https://github.com/microsoft/BotFramework-Services/issues/260
I have tried to send MS Teams bot message request via rest api:
End point: https://smba.trafficmanager.net/ca/apis/v3/conversations/{conversation id}/activities
{"text":"test","type":"message"}
And got empty response:
{}
The message i sent did not appear in the conversation.
Any idea where i could have misconfigured?
It is possible that trustServiceUrl needs to be run before a message is sent, i can't find equivalent rest api to call.
You definitely do need call trustServiceUrl before sending the message. In addition, you need to have additional properties on your activity, like the destination user or tenant id. Please refer to the documents on this, and good starting places are here and here.
I need to send the multiple bot replies to the same channel. using this API method: https://api.slack.com/methods/chat.postMessage
But when i am sending multiple messages, The order in which the messages get rendered is not in the correct order, is there anyway to fix this.
I use Telegram API to send a message to a user with my bot.
When the user sends me a message, that operation works but when I want to send a message to an user that haven't sent me any message to me before, then an error occurs (I have his user id):
{"ok":false,"error_code":400,"description":"Error: Bad Request: user not found"}
Is there a solution to solve this?
Telegram bots cannot be a conversation initiators - they can write to user only after that user sends a message to bot first: https://core.telegram.org/bots#4-how-are-bots-different-from-humans
If this error appears in a group, first you need add this bot to that group.