UNPKG

@qso-soft/shared

Version:

Shared library for QSO-soft

6 lines (5 loc) 487 B
import type { SendMessageProps } from './types'; export declare const TG_BASE_URL = "https://api.telegram.org/bot"; export declare const getTgChatIds: (token: string) => Promise<number[]>; export declare const sendTgMessage: ({ chatIds, token, message }: SendMessageProps) => Promise<import("axios").AxiosResponse<any, any>[]>; export declare const getTgMessageByStatus: (status: "error" | "warning" | "success" | "critical" | undefined, moduleName: string, message?: string) => string;