/** * @module botbuilder-dialogs-adaptive-teams */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { BoolExpression, Expression, StringExpression } from 'adaptive-expressions'; import { Activity } from 'botbuilder'; import { Converter, ConverterFactory, Dialog, DialogConfiguration, DialogContext, DialogStateManager, DialogTurnResult, TemplateInterface } from 'botbuilder-dialogs'; export interface SendMessageToTeamsChannelConfiguration extends DialogConfiguration { disabled?: boolean | string | BoolExpression; property?: string | Expression | StringExpression; conversationReferenceProperty?: string | Expression | StringExpression; activityIdProperty?: string | Expression | StringExpression; teamsChannelId?: string | Expression | StringExpression; activity?: TemplateInterface; } /** * Calls TeamsInfo.GetTeamDetails and sets the result to a memory property. */ export declare class SendMessageToTeamsChannel extends Dialog implements SendMessageToTeamsChannelConfiguration { /** * Class identifier. */ static readonly $kind = "Teams.SendMessageToTeamsChannel"; /** * Gets or sets an optional expression which if is true will disable this action. */ disabled?: BoolExpression; /** * Gets or sets property path to put the newly created activity's Conversation Reference. * This can be used to later send messages to this same conversation. */ conversationReferenceProperty?: StringExpression; /** * Gets or sets property path to put the id of the activity sent. */ activityIdProperty?: StringExpression; /** * Gets or sets the expression to get the value to use for team id. * * @default * =turn.activity.channelData.channel.id */ teamsChannelId: StringExpression; /** * Gets or sets template for the activity expression containing the activity to send. */ activity?: TemplateInterface; getConverter(property: keyof SendMessageToTeamsChannelConfiguration): Converter | ConverterFactory; /** * Called when the dialog is started and pushed onto the dialog stack. * * @param {DialogContext} dc The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation. * @param {object} _options Optional, initial information to pass to the dialog. * @returns {Promise} A promise representing the asynchronous operation. */ beginDialog(dc: DialogContext, _options?: Record): Promise; /** * Builds the compute Id for the dialog. * * @returns {string} A string representing the compute Id. */ protected onComputeId(): string; } //# sourceMappingURL=sendMessageToTeamsChannel.d.ts.map