import { connectOwnBotAction, disconnectOwnBotAction, pairTelegram } from "@/app/(app)/actions"; import { Hidden } from "@/components/cards"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { cn } from "@/lib/utils"; import { getT } from "@/lib/i18n"; function StepNum({ n, done }: { n: number; done: boolean }) { return ( {done ? "✓" : n} ); } /** * PEP-85: connecting the user's own Telegram bot in three plain steps (BotFather → token → * Start). Shown on the Home page as the first thing a new user does, and in Settings. */ export async function OwnBotSteps({ botUsername, back, bare = false }: { botUsername: string | null; back: string; bare?: boolean }) { const t = await getT(); const hasBot = !!botUsername; const fields = { back }; return (
{t("Через Telegram фабрика зовёт вас, когда агенту нужен ответ или работа готова, — отвечать можно кнопками с телефона. У каждого пользователя свой бот: вы создаёте его за две минуты, без программирования.")}
)}