Can i make a batch file that makes my bot send some random msg to MSTeams?How can I generate random alphanumeric strings?how to send message via telegram Bot in c#?Skype/MS Team REST API not workingBot Framework bot can't post in Microsoft Teams channel without being promptedHow to request botstate users on Microsoft Teams via RestSend Attachments to Bot in TeamsMicrosoft-Teams custom bot : error while sending a replyMicrosoft Bot Connector - get activity id from response after sending messageMaking a bot forward an activity using Microsoft Bot SDKHow do I get notifications when a bot sends a message in Teams?
Find the C-factor of a vote
What exactly is the 'online' in OLAP and OLTP?
Why do textbooks often include the solutions to odd or even numbered problems but not both?
What reason would an alien civilization have for building a Dyson Sphere (or Swarm) if cheap Nuclear fusion is available?
How does a blind passenger not die, if driver becomes unconscious
Explain why a line can never intersect a plane in exactly two points.
Does having had a visa for a country mean I used to be a citizen/national of that country?
How to model a twisted cylinder like this
Why do some professors with PhDs leave their professorships to teach high school?
What happens to Cessna electric flaps that are moving when power is lost?
How is hair tissue mineral analysis performed?
Methodology: Writing unit tests for another developer
Suggested order for Amazon Prime Doctor Who series
What does it mean to "control target player"?
Java TreeMap.floorKey() equivalent for std::map
What is the origin of Scooby-Doo's name?
What is "industrial ethernet"?
Why does Linux list NVMe drives as /dev/nvme0 instead of /dev/sda?
Helping ease my back pain when I'm studying 13 hours everyday, even weekends
What's currently blocking the construction of the wall between Mexico and the US?
Is "Busen" just the area between the breasts?
Should developer taking test phones home or put in office?
How many children?
Do I have any obligations to my PhD supervisor's requests after I have graduated?
Can i make a batch file that makes my bot send some random msg to MSTeams?
How can I generate random alphanumeric strings?how to send message via telegram Bot in c#?Skype/MS Team REST API not workingBot Framework bot can't post in Microsoft Teams channel without being promptedHow to request botstate users on Microsoft Teams via RestSend Attachments to Bot in TeamsMicrosoft-Teams custom bot : error while sending a replyMicrosoft Bot Connector - get activity id from response after sending messageMaking a bot forward an activity using Microsoft Bot SDKHow do I get notifications when a bot sends a message in Teams?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Im trying to make my bot be able to send msg to msteams without being on msteams with batch file. But i just cannot find a way to get past this error.
ERROR: ChatConnector: receive - no security token sent.
So if anybody has any idea if making a batch file like this is possible please help me.
Im sending @BOT 1234 as mention to /api/messages since the bot sends data if hes mentioned but if theres a another way please tell me.
My code in BATCH FILE:
curl -X POST -H "Content-type: application/json" --data ""text": "@BOT 1234"" https://myaddress.ngrok.io/api/messages
c# microsoft-teams
add a comment |
Im trying to make my bot be able to send msg to msteams without being on msteams with batch file. But i just cannot find a way to get past this error.
ERROR: ChatConnector: receive - no security token sent.
So if anybody has any idea if making a batch file like this is possible please help me.
Im sending @BOT 1234 as mention to /api/messages since the bot sends data if hes mentioned but if theres a another way please tell me.
My code in BATCH FILE:
curl -X POST -H "Content-type: application/json" --data ""text": "@BOT 1234"" https://myaddress.ngrok.io/api/messages
c# microsoft-teams
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04
add a comment |
Im trying to make my bot be able to send msg to msteams without being on msteams with batch file. But i just cannot find a way to get past this error.
ERROR: ChatConnector: receive - no security token sent.
So if anybody has any idea if making a batch file like this is possible please help me.
Im sending @BOT 1234 as mention to /api/messages since the bot sends data if hes mentioned but if theres a another way please tell me.
My code in BATCH FILE:
curl -X POST -H "Content-type: application/json" --data ""text": "@BOT 1234"" https://myaddress.ngrok.io/api/messages
c# microsoft-teams
Im trying to make my bot be able to send msg to msteams without being on msteams with batch file. But i just cannot find a way to get past this error.
ERROR: ChatConnector: receive - no security token sent.
So if anybody has any idea if making a batch file like this is possible please help me.
Im sending @BOT 1234 as mention to /api/messages since the bot sends data if hes mentioned but if theres a another way please tell me.
My code in BATCH FILE:
curl -X POST -H "Content-type: application/json" --data ""text": "@BOT 1234"" https://myaddress.ngrok.io/api/messages
c# microsoft-teams
c# microsoft-teams
edited Mar 25 at 8:38
Heimot
asked Mar 25 at 8:33
HeimotHeimot
92
92
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04
add a comment |
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04
add a comment |
2 Answers
2
active
oldest
votes
Following on your comment saying you're getting a "no security token sent" message, I would suggest you to check the microsoft docs for authenticating a bot service request link
Basically you need a Bearer access token than you add to each request in the Authorization header
To request an access token follow the steps below:
Step 1
Request an access token from the MSA/AAD v2 login service
POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=MICROSOFT-APP-ID&client_secret=MICROSOFT-APP-
PASSWORD&scope=https%3A%2F%2Fapi.botframework.com%2F.default
Step 2
Add the access token from the response to your bot service call
add a comment |
You should take a look at
proactive messages
Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333845%2fcan-i-make-a-batch-file-that-makes-my-bot-send-some-random-msg-to-msteams%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Following on your comment saying you're getting a "no security token sent" message, I would suggest you to check the microsoft docs for authenticating a bot service request link
Basically you need a Bearer access token than you add to each request in the Authorization header
To request an access token follow the steps below:
Step 1
Request an access token from the MSA/AAD v2 login service
POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=MICROSOFT-APP-ID&client_secret=MICROSOFT-APP-
PASSWORD&scope=https%3A%2F%2Fapi.botframework.com%2F.default
Step 2
Add the access token from the response to your bot service call
add a comment |
Following on your comment saying you're getting a "no security token sent" message, I would suggest you to check the microsoft docs for authenticating a bot service request link
Basically you need a Bearer access token than you add to each request in the Authorization header
To request an access token follow the steps below:
Step 1
Request an access token from the MSA/AAD v2 login service
POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=MICROSOFT-APP-ID&client_secret=MICROSOFT-APP-
PASSWORD&scope=https%3A%2F%2Fapi.botframework.com%2F.default
Step 2
Add the access token from the response to your bot service call
add a comment |
Following on your comment saying you're getting a "no security token sent" message, I would suggest you to check the microsoft docs for authenticating a bot service request link
Basically you need a Bearer access token than you add to each request in the Authorization header
To request an access token follow the steps below:
Step 1
Request an access token from the MSA/AAD v2 login service
POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=MICROSOFT-APP-ID&client_secret=MICROSOFT-APP-
PASSWORD&scope=https%3A%2F%2Fapi.botframework.com%2F.default
Step 2
Add the access token from the response to your bot service call
Following on your comment saying you're getting a "no security token sent" message, I would suggest you to check the microsoft docs for authenticating a bot service request link
Basically you need a Bearer access token than you add to each request in the Authorization header
To request an access token follow the steps below:
Step 1
Request an access token from the MSA/AAD v2 login service
POST https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
grant_type=client_credentials&client_id=MICROSOFT-APP-ID&client_secret=MICROSOFT-APP-
PASSWORD&scope=https%3A%2F%2Fapi.botframework.com%2F.default
Step 2
Add the access token from the response to your bot service call
answered Mar 25 at 9:52
user6635278
add a comment |
add a comment |
You should take a look at
proactive messages
Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch
add a comment |
You should take a look at
proactive messages
Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch
add a comment |
You should take a look at
proactive messages
Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch
You should take a look at
proactive messages
Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch
answered Mar 25 at 8:59
B. LecB. Lec
1338
1338
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333845%2fcan-i-make-a-batch-file-that-makes-my-bot-send-some-random-msg-to-msteams%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The error message states "no security token sent"... Your bot will have to obtain a security token that it can include in the request
– phuzi
Mar 25 at 9:01
@phuzi Thats pretty much what im asking how to get the security code included in batch file.
– Heimot
Mar 25 at 9:04