-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtimeout.d.ts
More file actions
21 lines (21 loc) · 803 Bytes
/
timeout.d.ts
File metadata and controls
21 lines (21 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import * as builder from "botbuilder";
export interface TimeoutOptions {
PROMPT_IF_USER_IS_ACTIVE_MSG?: string;
PROMPT_IF_USER_IS_ACTIVE_BUTTON_TEXT?: string;
PROMPT_USER_IS_ACTIVE_RESPONSE?: string;
PROMPT_IF_USER_IS_ACTIVE_TIMEOUT_IN_MS?: number;
END_CONVERSATION_MSG?: string;
END_CONVERSATION_TIMEOUT_IN_MS?: number;
}
export declare class Timeout {
private bot;
private timeoutStore;
private options;
constructor(bot: builder.UniversalBot, options: TimeoutOptions);
init(): void;
private startEndConversationTimer(session);
private startPromptTimer(session);
private clearTimeoutHandlers(convoId);
private resetHandlers(convoId);
}
export declare function setConversationTimeout(bot: builder.UniversalBot, options: TimeoutOptions): void;