fix: dedupe probe/token base types (#16986) (thanks @iyoda)

This commit is contained in:
Shadow
2026-02-15 11:34:21 -06:00
committed by Shadow
parent a0e763168f
commit c6b3736fe7
23 changed files with 101 additions and 55 deletions

View File

@@ -1,12 +1,11 @@
import type { BaseProbeResult } from "../channels/plugins/types.js";
import { fetchWithTimeout } from "../utils/fetch-timeout.js";
import { makeProxyFetch } from "./proxy.js";
const TELEGRAM_API_BASE = "https://api.telegram.org";
export type TelegramProbe = {
ok: boolean;
export type TelegramProbe = BaseProbeResult & {
status?: number | null;
error?: string | null;
elapsedMs: number;
bot?: {
id?: number | null;