import { API_CONSTANTS } from "grammy"; type TelegramUpdateType = (typeof API_CONSTANTS.ALL_UPDATE_TYPES)[number]; export function resolveTelegramAllowedUpdates(): ReadonlyArray { const updates = [...API_CONSTANTS.DEFAULT_UPDATE_TYPES] as TelegramUpdateType[]; if (!updates.includes("message_reaction")) { updates.push("message_reaction"); } return updates; }