Bot acts differently in Microsoft TeamsBotFramework WebChat not receiving messages.How to display a welcome message from my Bot using Microsoft Bot FrameworkAuthorization for Microsoft App ID xxx failed with status code Forbidden and reason phrase 'Forbidden'Send Attachments to Bot in TeamsBot Framework - Bot initiates the conversation on SkypeMicrosoft Azure Bot App Skype Channel not WorkingHow can I diagnose why my bot isn't working with Skype?Action.Submit buttons in Adaptive card does not render in SkypeHow to get user device type accessing skype for business bot built in MS Bot FrameworkBot working on Emulator but not on Azure (InternalServerError)

Match 4 columns and replace 1 in 2 files

Attacking the Hydra

Heyawake: An Introductory Puzzle

A man in the desert is bitten by a skeletal animal, its skull gets stuck on his arm

How do I ask for 2-3 days per week remote work in a job interview?

Are there any low-level means to *exit* the Ethereal plane to a plane of my choosing?

Is there any official ruling on how characters go from 0th to 1st level in a class?

Installing Windows to flash UEFI/ BIOS, then reinstalling Ubuntu

When did Bilbo and Frodo learn that Gandalf was a Maia?

Is there a fallacy about "appeal to 'big words'"?

Airline power sockets shut down when I plug my computer in. How can I avoid that?

Are there liquid fueled rocket boosters having coaxial fuel/oxidizer tanks?

What can I do to increase the amount of LEDs I can power with a pro micro?

Did Michelle Obama have a staff of 23; and Melania have a staff of 4?

English article "A" vs "The"

Weird resistor with dots around it

What should we do with manuals from the 80s?

Help, I cannot decide when to start the story

Why aren't rainbows blurred-out into nothing after they are produced?

How can I find an old paper when the usual methods fail?

Illustrator - SVG make thinner path

Why did IBM make the PC BIOS source code public?

Solving pricing problem heuristically in column generation algorithm for VRP

Is there a name for the technique in songs/poems, where the rhyming pattern primes the listener for a certain line, which never comes?



Bot acts differently in Microsoft Teams


BotFramework WebChat not receiving messages.How to display a welcome message from my Bot using Microsoft Bot FrameworkAuthorization for Microsoft App ID xxx failed with status code Forbidden and reason phrase 'Forbidden'Send Attachments to Bot in TeamsBot Framework - Bot initiates the conversation on SkypeMicrosoft Azure Bot App Skype Channel not WorkingHow can I diagnose why my bot isn't working with Skype?Action.Submit buttons in Adaptive card does not render in SkypeHow to get user device type accessing skype for business bot built in MS Bot FrameworkBot working on Emulator but not on Azure (InternalServerError)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I've deployed my Bot to Webchat, Skype and MS Teams.



In OnTurnAsync method I check, if the user input begins with bnr then I call a specific method.



if (turnContext.Activity.Text.ToLower().StartsWith("bnr"))

string msg = RequestHandler.BnrCaller(turnContext.Activity.Text);
await turnContext.SendActivityAsync(msg);
return;



It works fine with Skype and Webchat but with teams it does not work 100%, It works just sometimes.



[Edit]



I found out, that it does not work if I copied the input into the input field but when I type it, it works fine!










share|improve this question


























  • Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

    – Dana V
    Mar 27 at 18:20











  • indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

    – Taher
    Mar 28 at 13:39

















0















I've deployed my Bot to Webchat, Skype and MS Teams.



In OnTurnAsync method I check, if the user input begins with bnr then I call a specific method.



if (turnContext.Activity.Text.ToLower().StartsWith("bnr"))

string msg = RequestHandler.BnrCaller(turnContext.Activity.Text);
await turnContext.SendActivityAsync(msg);
return;



It works fine with Skype and Webchat but with teams it does not work 100%, It works just sometimes.



[Edit]



I found out, that it does not work if I copied the input into the input field but when I type it, it works fine!










share|improve this question


























  • Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

    – Dana V
    Mar 27 at 18:20











  • indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

    – Taher
    Mar 28 at 13:39













0












0








0








I've deployed my Bot to Webchat, Skype and MS Teams.



In OnTurnAsync method I check, if the user input begins with bnr then I call a specific method.



if (turnContext.Activity.Text.ToLower().StartsWith("bnr"))

string msg = RequestHandler.BnrCaller(turnContext.Activity.Text);
await turnContext.SendActivityAsync(msg);
return;



It works fine with Skype and Webchat but with teams it does not work 100%, It works just sometimes.



[Edit]



I found out, that it does not work if I copied the input into the input field but when I type it, it works fine!










share|improve this question
















I've deployed my Bot to Webchat, Skype and MS Teams.



In OnTurnAsync method I check, if the user input begins with bnr then I call a specific method.



if (turnContext.Activity.Text.ToLower().StartsWith("bnr"))

string msg = RequestHandler.BnrCaller(turnContext.Activity.Text);
await turnContext.SendActivityAsync(msg);
return;



It works fine with Skype and Webchat but with teams it does not work 100%, It works just sometimes.



[Edit]



I found out, that it does not work if I copied the input into the input field but when I type it, it works fine!







.net-core botframework






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 14:05







Taher

















asked Mar 27 at 11:36









TaherTaher

14010 bronze badges




14010 bronze badges















  • Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

    – Dana V
    Mar 27 at 18:20











  • indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

    – Taher
    Mar 28 at 13:39

















  • Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

    – Dana V
    Mar 27 at 18:20











  • indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

    – Taher
    Mar 28 at 13:39
















Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

– Dana V
Mar 27 at 18:20





Interesting. What happens when it doesn't work? Just not call the BnrCaller? How often does it fail vs succeed? Have you attempted to debug locally using ngrok?

– Dana V
Mar 27 at 18:20













indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

– Taher
Mar 28 at 13:39





indeed! I found out the problem. I have often copied the text into the input field in MS Teams, then it didn't work but when I type it then it works :/ So the copied text is the problem! which makes the task more in interesting!

– Taher
Mar 28 at 13:39












2 Answers
2






active

oldest

votes


















0














The Messages coming from the Teams are having a different structure.
The message text begins with the words <at>...</at>.
You need to delete this beginning in a Middleware component, etc.
Try to look at your incoming messages through NGROK at localhost:4040 in your web browser.






share|improve this answer



























  • I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

    – Taher
    Mar 28 at 13:41



















0














So, I found out the issue by dint of app-insights.



I've added a middleware, which logs the request body into app-insights and just realized, that when I copy/paste a message like: "Hello", it would be logged in app-insights as something like this "rnnrHellornnrn". When I type it, it would be logged just fine.
So I jsut remove these symboles from the request and it works!






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%2f55376260%2fbot-acts-differently-in-microsoft-teams%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














    The Messages coming from the Teams are having a different structure.
    The message text begins with the words <at>...</at>.
    You need to delete this beginning in a Middleware component, etc.
    Try to look at your incoming messages through NGROK at localhost:4040 in your web browser.






    share|improve this answer



























    • I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

      – Taher
      Mar 28 at 13:41
















    0














    The Messages coming from the Teams are having a different structure.
    The message text begins with the words <at>...</at>.
    You need to delete this beginning in a Middleware component, etc.
    Try to look at your incoming messages through NGROK at localhost:4040 in your web browser.






    share|improve this answer



























    • I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

      – Taher
      Mar 28 at 13:41














    0












    0








    0







    The Messages coming from the Teams are having a different structure.
    The message text begins with the words <at>...</at>.
    You need to delete this beginning in a Middleware component, etc.
    Try to look at your incoming messages through NGROK at localhost:4040 in your web browser.






    share|improve this answer















    The Messages coming from the Teams are having a different structure.
    The message text begins with the words <at>...</at>.
    You need to delete this beginning in a Middleware component, etc.
    Try to look at your incoming messages through NGROK at localhost:4040 in your web browser.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 28 at 10:39









    Bhavik Patel

    6661 gold badge4 silver badges20 bronze badges




    6661 gold badge4 silver badges20 bronze badges










    answered Mar 28 at 10:14









    MarcMarc

    1




    1















    • I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

      – Taher
      Mar 28 at 13:41


















    • I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

      – Taher
      Mar 28 at 13:41

















    I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

    – Taher
    Mar 28 at 13:41






    I'm not sure, if this is the what I need! It works fine for every thing, just when I copy a text into the input field, it behaves unexpectedly

    – Taher
    Mar 28 at 13:41














    0














    So, I found out the issue by dint of app-insights.



    I've added a middleware, which logs the request body into app-insights and just realized, that when I copy/paste a message like: "Hello", it would be logged in app-insights as something like this "rnnrHellornnrn". When I type it, it would be logged just fine.
    So I jsut remove these symboles from the request and it works!






    share|improve this answer





























      0














      So, I found out the issue by dint of app-insights.



      I've added a middleware, which logs the request body into app-insights and just realized, that when I copy/paste a message like: "Hello", it would be logged in app-insights as something like this "rnnrHellornnrn". When I type it, it would be logged just fine.
      So I jsut remove these symboles from the request and it works!






      share|improve this answer



























        0












        0








        0







        So, I found out the issue by dint of app-insights.



        I've added a middleware, which logs the request body into app-insights and just realized, that when I copy/paste a message like: "Hello", it would be logged in app-insights as something like this "rnnrHellornnrn". When I type it, it would be logged just fine.
        So I jsut remove these symboles from the request and it works!






        share|improve this answer













        So, I found out the issue by dint of app-insights.



        I've added a middleware, which logs the request body into app-insights and just realized, that when I copy/paste a message like: "Hello", it would be logged in app-insights as something like this "rnnrHellornnrn". When I type it, it would be logged just fine.
        So I jsut remove these symboles from the request and it works!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 11 at 13:18









        TaherTaher

        14010 bronze badges




        14010 bronze badges






























            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%2f55376260%2fbot-acts-differently-in-microsoft-teams%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

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript