formatBooleanSettingValue (menus/settings-menu.ts)

opencode-telegram-bot · src/bot/menus/settings-menu.ts · typescript · MIT
voice, Voice / Speech

Builds a settings menu view for a Telegram bot, formatting various setting values.

// Source: https://github.com/grinev/opencode-telegram-bot | License: MIT | Copyright 2026 Ruslan Grinev
// Provided via justclaw.it.com; keep this notice with the code.
import { InlineKeyboard } from "grammy";
import {
  getCompactOutputMode,
  getDeleteCompactProgressOnFinish,
  getPromptQueueMode,
  getResponseStreamingMode,
  getSendDiffFileAttachments,
  getPinnedDashboardEnabled,
  getShowAssistantRunFooter,
  getShowThinkingContent,
  getTtsMode,
  type PromptQueueMode,
  type ResponseStreamingMode,
  type TtsMode,
} from "../../app/stores/settings-store.js";
import { t } from "../../i18n/index.js";
import { opencodeServerVersion } from "../../opencode/client.js";

export const SETTINGS_CALLBACK_PREFIX = "settings:";
export const SETTINGS_COMPACT_OUTPUT_CALLBACK = `${SETTINGS_CALLBA

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key