refactor(telegram): add CommandsAssistantContext to types
This commit is contained in:
parent
fddc2b0233
commit
cdf8a4c82c
@ -1,3 +1,5 @@
|
||||
import type { Session } from "../../core/session.js";
|
||||
|
||||
export interface TelegramChannelConfig {
|
||||
enabled: boolean
|
||||
botToken: string
|
||||
@ -5,3 +7,9 @@ export interface TelegramChannelConfig {
|
||||
notificationTopicId: number | null
|
||||
assistantTopicId: number | null
|
||||
}
|
||||
|
||||
export interface CommandsAssistantContext {
|
||||
topicId: number;
|
||||
getSession: () => Session | null;
|
||||
respawn: () => Promise<void>;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user