Guest User

Untitled

a guest
Jan 15th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import { ActivityTypes, CardFactory, TurnContext } from "botbuilder";
  2.  
  3. export class FlexOBot {
  4. /**
  5. * Handles incoming activity, received from a user, processes it, and replies as needed
  6. * @param {TurnContext} context on turn context object.
  7. */
  8. public onTurn = async (turnContext: TurnContext) => {
  9. const oauthCard = CardFactory.oauthCard("ms-graph", "Login", "Please sign in so I know who you are");
  10. return await turnContext.sendActivity({ attachments: [oauthCard] });
  11. }
  12. }
Add Comment
Please, Sign In to add comment