UNPKG

1.58 kBTypeScriptView Raw
1/**
2 * @module botbuilder
3 */
4/**
5 * Copyright (c) Microsoft Corporation. All rights reserved.
6 * Licensed under the MIT License.
7 */
8import { Activity, ChannelInfo, TeamsChannelAccount, TeamDetails, TurnContext, TeamsPagedMembersResult, ConversationReference } from 'botbuilder-core';
9export declare class TeamsInfo {
10 static getTeamDetails(context: TurnContext, teamId?: string): Promise<TeamDetails>;
11 static sendMessageToTeamsChannel(context: TurnContext, activity: Activity, teamsChannelId: string): Promise<[ConversationReference, string]>;
12 static getTeamChannels(context: TurnContext, teamId?: string): Promise<ChannelInfo[]>;
13 static getMembers(context: TurnContext): Promise<TeamsChannelAccount[]>;
14 static getPagedMembers(context: TurnContext, pageSize?: number, continuationToken?: string): Promise<TeamsPagedMembersResult>;
15 static getMember(context: TurnContext, userId: string): Promise<TeamsChannelAccount>;
16 static getTeamMembers(context: TurnContext, teamId?: string): Promise<TeamsChannelAccount[]>;
17 static getPagedTeamMembers(context: TurnContext, teamId?: string, pageSize?: number, continuationToken?: string): Promise<TeamsPagedMembersResult>;
18 static getTeamMember(context: TurnContext, teamId?: string, userId?: string): Promise<TeamsChannelAccount>;
19 private static getMembersInternal;
20 private static getPagedMembersInternal;
21 private static getMemberInternal;
22 private static getTeamId;
23 private static getConnectorClient;
24 private static getTeamsConnectorClient;
25}
26//# sourceMappingURL=teamsInfo.d.ts.map
\No newline at end of file