UNPKG

ams-ssk

Version:

NestJS AMS Library for file management

28 lines (27 loc) 972 B
export interface tgBotConfig { token: string; maxConcurrentOperations: number; } export interface tgChannelConfig { channelId: string; description?: string; botTokens: string[]; } export interface tgConfig { bots: tgBotConfig[]; channels: tgChannelConfig[]; adminChatId?: string; } export declare class BotUtils { private static config; static initialize(config: tgConfig): void; static getChannelById(channelId: string): tgChannelConfig | undefined; static getChannelsByBotToken(botToken: string): tgChannelConfig[]; static canBotAccessChannel(botToken: string, channelId: string): boolean; static getBotsForChannel(channelId: string): tgBotConfig[]; static getAllChannels(): tgChannelConfig[]; static getAllBots(): tgBotConfig[]; static getAdminChatId(): string | undefined; } declare const _default: (() => tgConfig) & import("@nestjs/config").ConfigFactoryKeyHost<tgConfig>; export default _default;