mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 16:50:22 +00:00
Telegram: remove last @ts-nocheck from bot-handlers.ts (#9206)
* Telegram: remove @ts-nocheck from bot-handlers.ts, use Grammy types directly, deduplicate StickerMetadata * Telegram: remove last @ts-nocheck from bot-handlers.ts (#9206)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Bot } from "grammy";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { DmPolicy, TelegramGroupConfig, TelegramTopicConfig } from "../config/types.js";
|
||||
import type { TelegramContext } from "./bot/types.js";
|
||||
import type { StickerMetadata, TelegramContext } from "./bot/types.js";
|
||||
import { resolveAckReaction } from "../agents/identity.js";
|
||||
import {
|
||||
findModelInCatalog,
|
||||
@@ -57,13 +57,7 @@ import {
|
||||
export type TelegramMediaRef = {
|
||||
path: string;
|
||||
contentType?: string;
|
||||
stickerMetadata?: {
|
||||
emoji?: string;
|
||||
setName?: string;
|
||||
fileId?: string;
|
||||
fileUniqueId?: string;
|
||||
cachedDescription?: string;
|
||||
};
|
||||
stickerMetadata?: StickerMetadata;
|
||||
};
|
||||
|
||||
type TelegramMessageContextOptions = {
|
||||
|
||||
Reference in New Issue
Block a user