Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { ActivityTypes, CardFactory, TurnContext } from "botbuilder";
- export class FlexOBot {
- /**
- * Handles incoming activity, received from a user, processes it, and replies as needed
- * @param {TurnContext} context on turn context object.
- */
- public onTurn = async (turnContext: TurnContext) => {
- const oauthCard = CardFactory.oauthCard("ms-graph", "Login", "Please sign in so I know who you are");
- return await turnContext.sendActivity({ attachments: [oauthCard] });
- }
- }
Add Comment
Please, Sign In to add comment