mirror of https://github.com/openclaw/openclaw.git
12 lines
394 B
TypeScript
12 lines
394 B
TypeScript
import { API_CONSTANTS } from "grammy";
|
|
|
|
type TelegramUpdateType = (typeof API_CONSTANTS.ALL_UPDATE_TYPES)[number];
|
|
|
|
export function resolveTelegramAllowedUpdates(): ReadonlyArray<TelegramUpdateType> {
|
|
const updates = [...API_CONSTANTS.DEFAULT_UPDATE_TYPES] as TelegramUpdateType[];
|
|
if (!updates.includes("message_reaction")) {
|
|
updates.push("message_reaction");
|
|
}
|
|
return updates;
|
|
}
|