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;








0















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










share|improve this question
























  • 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

















0















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










share|improve this question
























  • 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













0












0








0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












2 Answers
2






active

oldest

votes


















0














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






share|improve this answer






























    2














    You should take a look at
    proactive messages



    Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch






    share|improve this answer

























      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
      );



      );













      draft saved

      draft discarded


















      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









      0














      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






      share|improve this answer



























        0














        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






        share|improve this answer

























          0












          0








          0







          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






          share|improve this answer













          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 25 at 9:52







          user6635278






























              2














              You should take a look at
              proactive messages



              Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch






              share|improve this answer



























                2














                You should take a look at
                proactive messages



                Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch






                share|improve this answer

























                  2












                  2








                  2







                  You should take a look at
                  proactive messages



                  Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch






                  share|improve this answer













                  You should take a look at
                  proactive messages



                  Then call a custom webmethod https://myaddress.ngrok.io/api/batch in your batch







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 25 at 8:59









                  B. LecB. Lec

                  1338




                  1338



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현