chore: Manually fix TypeScript errors uncovered by sorting imports.

Some TypeScript checks are order dependent, and the fixed types were `any`/`unknown`, TypeScript just didn't report it before for some reason.
This commit is contained in:
cpojer
2026-02-01 10:07:59 +09:00
parent f06dd8df06
commit 147eba11fd
4 changed files with 47 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ import { writeConfigFile } from "../config/io.js";
import { danger, logVerbose, warn } from "../globals.js";
import { withTelegramApiErrorLogging } from "./api-logging.js";
import { firstDefined, isSenderAllowed, normalizeAllowFromWithStore } from "./bot-access.js";
import { RegisterTelegramHandlerParams } from "./bot-native-commands.js";
import { MEDIA_GROUP_TIMEOUT_MS, type MediaGroupEntry } from "./bot-updates.js";
import { resolveMedia } from "./bot/delivery.js";
import { resolveTelegramForumThreadId } from "./bot/helpers.js";
@@ -37,7 +38,7 @@ export const registerTelegramHandlers = ({
shouldSkipUpdate,
processMessage,
logger,
}) => {
}: RegisterTelegramHandlerParams) => {
const TELEGRAM_TEXT_FRAGMENT_START_THRESHOLD_CHARS = 4000;
const TELEGRAM_TEXT_FRAGMENT_MAX_GAP_MS = 1500;
const TELEGRAM_TEXT_FRAGMENT_MAX_ID_GAP = 1;