Telegram: remove @ts-nocheck from bot-message.ts (#9180)

* Telegram: remove @ts-nocheck from bot-message.ts, type deps via Omit<BuildTelegramMessageContextParams>

* Telegram: widen allMedia to TelegramMediaRef[] so stickerMetadata flows through

* Telegram: remove @ts-nocheck from bot-message.ts (#9180)
This commit is contained in:
Christian Klotz
2026-02-05 00:20:44 +00:00
committed by GitHub
parent 4434cae565
commit 90b4e54354
3 changed files with 34 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ import {
resolveTelegramThreadSpec,
} from "./bot/helpers.js";
type TelegramMediaRef = {
export type TelegramMediaRef = {
path: string;
contentType?: string;
stickerMetadata?: {
@@ -89,7 +89,7 @@ type ResolveGroupActivation = (params: {
type ResolveGroupRequireMention = (chatId: string | number) => boolean;
type BuildTelegramMessageContextParams = {
export type BuildTelegramMessageContextParams = {
primaryCtx: TelegramContext;
allMedia: TelegramMediaRef[];
storeAllowFrom: string[];