diff --git a/locales/en.json b/locales/en.json index 1291ec1..e7e7397 100644 --- a/locales/en.json +++ b/locales/en.json @@ -410,7 +410,6 @@ "bot.menu.tasks": "Tasks", "bot.menu.settings": "Settings", "bot.menu.pause": "Pause", - "bot.off": "Sending is off: the bot is missing a key or a chat. Details are on the “Bot and reports” page.", "bot.none": "not set", "bot.on": "on", "bot.offShort": "off", @@ -422,7 +421,6 @@ "bot.bind.wrong": "The approval word did not match. Check it on the «Bot and reports» page or set a new one there, then send it here.", "bot.bind.done": "Done, the bot is connected to your account.", "bot.bind.noWord": "The approval word is not set yet. Set it on the «Bot and reports» page and send it here.", - "bot.status": "Waiting for your decision: {wait}. Sending: {state}.", "bot.approvals.empty": "Nothing to approve right now.", "bot.plan.empty": "The content plan has no dated entries yet.", "bot.pause.done": "All sending is stopped.", @@ -765,11 +763,11 @@ "botp.cause.rules": "not sent: the rules on the «Strategy and rules» page did not allow it", "botp.retry": "Next try — {time}", "why.tg.key": "Sending to Telegram is off: a separate bot for your approvals is not connected yet. The team connects it; nothing is needed from you.", - "why.tg.chat": "The bot is connected and replies to you in Telegram. Sending summaries and posts is off on purpose: until you choose a chat for messages, nothing goes out without your knowledge. We will turn it on once you choose the chat.", + "why.tg.chat": "Sending to Telegram is off: no chat for summaries is chosen. What to do is in «The bot right now» on the «Bot and reports» page.", "why.li.key": "Sending to LinkedIn is off: we are waiting for the LinkedIn app to be approved. For now posts are saved as drafts; nothing is needed from you.", "why.li.author": "Sending to LinkedIn is off: access is there, but the profile to post as is not chosen. The team connects the profile; nothing is needed from you.", "why.tg.short.key": "No separate approvals bot yet; the team connects it.", - "why.tg.short.chat": "The bot is connected; sending is off on purpose until a chat for messages is chosen.", + "why.tg.short.chat": "No chat for summaries is chosen; what to do is in «The bot right now» on the «Bot and reports» page.", "home.send.title": "Why messages are not sent yet", "ui.plan.startTip": "The 60-day calendar starts on this date.", "ui.plan.f.rubricTip": "Pick a rubric so you can see whether its target share is met.", @@ -987,7 +985,7 @@ "botp.tg.state.none": "Now: not linked", "botp.tg.state.noneWhy": "The approval word is not set yet, so the bot does not know who the owner is.", "botp.tg.state.waiting": "Now: waiting for the word", - "botp.tg.state.waitingWhy": "The approval word is set. The bot is waiting for you to send it from your Telegram. If the old word does not work, set a new one below.", + "botp.tg.state.waitingWhy": "The approval word is set. The bot is waiting for you to send it from your Telegram.", "botp.tg.state.bound": "Now: linked", "botp.tg.state.boundWhy": "The bot answers only you. Linking does not turn on posting to channels: every post still waits for your approval.", "botp.tg.word.newH": "Set a new word", @@ -995,9 +993,9 @@ "botp.tg.word.hintReplace": "The new word replaces the old one right away: the old word stops working in the bot and for letters. Upper and lower case do not matter.", "botp.tg.word.mismatch": "The words did not match, nothing changed. Enter the same word in both fields.", "botp.tg.word.bound": "The bot is already linked to the owner, so the word cannot be changed here. If this is not your account, write to the team.", - "botp.tg.word.env": "The word was not changed: the bot's messages go to another version of the site. Open «Bot and reports» there — the link is below.", + "botp.tg.word.env": "The word was not changed: the bot does not receive messages in this version, so the word cannot be set here.", "botp.tg.word.fixed": "The approval word was set by the team and cannot be changed here. Write to the team.", - "botp.tg.word.where": "You can set a new word in the version that receives the bot's messages:", + "botp.tg.word.where": "You can set a new word where the bot sends its messages — {where}:", "botp.tg.check.label": "Check the word", "botp.tg.check.btn": "Check", "botp.tg.check.ok": "The approval word matches. Send it to the bot.", @@ -1133,7 +1131,6 @@ "now.env.preview": "a draft version for checking", "now.env.local": "this version", "now.bind.on": "Linking: the bot is linked to the account of {who} and answers only it.", - "now.bind.off": "Linking: the bot is not linked to your account yet. Who fixes it: you. What to do: send the bot /start and your approval word.", "now.bind.elsewhere": "Owner linking is kept by the version that receives bot commands.", "now.send.ok": "Sending summaries: working, delivery confirmed at {time} Almaty time.", "now.send.unchecked": "Sending summaries: the chat is chosen, but delivery is not confirmed yet.", @@ -1178,7 +1175,7 @@ "now.q.chWhy": "Why: only test posts you approved go there, so you see them before real channels.", "now.q.smWhy": "Why: the bot sends summaries and reports here, and without a chosen chat sending is off.", "bot.you": "you", - "botp.unchecked": "Sending is ready, but delivery is not confirmed yet", + "botp.unchecked": "Sending does not work yet: delivery is not confirmed", "botp.tg.recv.elsewhere": "Bot messages and buttons go to another version.", "deploy.note.brm171": "«Bot and reports» and the bot's answer to «Status» show the same: who receives commands, linking, sending summaries and how many decisions wait for you; sending turns on only after delivery is confirmed. (BRM-171)", "strat.h": "90-day strategy", @@ -1299,5 +1296,21 @@ "mat.field.channel": "channel", "mat.field.publishAt": "release time", "mat.field.cta": "call to action", - "deploy.note.brm58": "On “Plan and idea bank” every record shows its path from idea to result: source, brand-memory facts, channel, release time, call to action and version; “published” is set only with a link, and a record with an unchecked fact goes out only after Tatiana approves it. (BRM-58)" + "deploy.note.brm58": "On “Plan and idea bank” every record shows its path from idea to result: source, brand-memory facts, channel, release time, call to action and version; “published” is set only with a link, and a record with an unchecked fact goes out only after Tatiana approves it. (BRM-58)", + "now.cmd.moving": "Bot commands are received by {where} for now. Your product will take the bot over when it is updated — then the link to your account, questions and decisions will be here. Who fixes it: the team, nothing is needed from you.", + "now.bind.waiting": "Link to your account: waiting for the word. Who fixes it: you. What to do: press «Open the bot in Telegram», then «Start», and send the bot your approval word.", + "now.bind.none": "Link to your account: not linked — the approval word is not set yet. Who fixes it: you. What to do: set the word on the «Bot and reports» page in the «Bot in Telegram» section, then send it to the bot.", + "now.bind.moving": "Link to your account: will appear here when your product takes the bot over. Then press «Open the bot in Telegram» and send the bot your approval word.", + "now.send.moving": "Sending summaries: not from your product yet — another version holds the bot. Nothing is needed from you.", + "now.wait.moving": "Waiting for your decision: will appear here when your product takes the bot over.", + "now.q.moving": "The bot's questions and your decisions will appear here when your product takes the bot over.", + "now.openBot": "Open the bot in Telegram", + "now.openBotHint": "Your personal chat with the bot opens: press «Start» and send the approval word.", + "now.summaryHere": "Send summaries to my personal chat with the bot", + "now.summaryHereHint": "Summaries and reports will come to your personal chat with the bot; a test message arrives right away. Nothing goes to channels.", + "now.more": "More on the «Bot and reports» page", + "botp.tg.recv.moving": "The bot's messages and buttons still go to another version. Your product will take the bot over when it is updated; nothing is needed from you.", + "botp.tg.word.whereNone": "The word cannot be set here: the bot does not receive messages in this version yet. Who fixes it: the team, nothing is needed from you.", + "bot.bind.summary": "Send summaries and reports here, to this personal chat? A test message arrives right away. Nothing goes to channels.", + "ui.sum.schedOnUnchecked": "Scheduled sending is on, but delivery to Telegram is not confirmed yet — see «The bot right now» on the «Bot and reports» page." } diff --git a/locales/kk.json b/locales/kk.json index b1df265..2147d84 100644 --- a/locales/kk.json +++ b/locales/kk.json @@ -410,7 +410,6 @@ "bot.menu.tasks": "Тапсырмалар", "bot.menu.settings": "Баптаулар", "bot.menu.pause": "Үзіліс", - "bot.off": "Жіберу өшірулі: ботқа кілт немесе чат жетіспейді. Толығырақ — «Бот және есептер» бетінде.", "bot.none": "көрсетілмеген", "bot.on": "қосулы", "bot.offShort": "өшірулі", @@ -422,7 +421,6 @@ "bot.bind.wrong": "Мақұлдау сөзі сәйкес келмеді. Оны «Бот және есептер» бетінде тексеріңіз немесе сол жерде жаңасын беріп, осында жазыңыз.", "bot.bind.done": "Дайын, бот сіздің аккаунтыңызға қосылды.", "bot.bind.noWord": "Мақұлдау сөзі әлі берілмеген. Оны «Бот және есептер» бетінде беріп, осында жазыңыз.", - "bot.status": "Шешіміңізді күтуде: {wait}. Жіберу: {state}.", "bot.approvals.empty": "Қазір келісетін ештеңе жоқ.", "bot.plan.empty": "Контент-жоспарда күні бар жазба әлі жоқ.", "bot.pause.done": "Барлық жіберулер тоқтатылды.", @@ -765,11 +763,11 @@ "botp.cause.rules": "жіберілмеді: «Стратегия және ережелер» бетіндегі ережелер солай шешті", "botp.retry": "Қайталау — {time}", "why.tg.key": "Telegram-ға жіберу өшірулі: сіздің келісімдеріңізге арналған бөлек бот әлі қосылмаған. Оны команда қосады, сізден ештеңе керек емес.", - "why.tg.chat": "Бот қосылған және сізге Telegram-да жауап береді. Жиынтықтар мен жарияланымдарды жіберу әдейі өшірілген: хабарламаларға арналған чатты таңдамайынша, сіздің рұқсатыңызсыз ештеңе жіберілмейді. Чатты таңдағанда қосамыз.", + "why.tg.chat": "Telegram-ға жіберу өшірулі: жиынтықтар чаты таңдалмаған. Не істеу керек — «Бот және есептер» бетіндегі «Бот қазір» бөлімінде.", "why.li.key": "LinkedIn-ге жіберу өшірулі: LinkedIn қосымшасының мақұлдануын күтіп отырмыз. Әзірге жарияланымдар жоба ретінде сақталады; сізден ештеңе керек емес.", "why.li.author": "LinkedIn-ге жіберу өшірулі: қолжетімділік бар, бірақ кімнің атынан жариялау керек екені таңдалмаған. Профильді команда қосады, сізден ештеңе керек емес.", "why.tg.short.key": "Келісімдерге арналған бөлек бот әлі қосылмаған; команда қосады.", - "why.tg.short.chat": "Бот қосылған; хабарлама чаты таңдалмайынша жіберу әдейі өшірілген.", + "why.tg.short.chat": "Жиынтықтар чаты таңдалмаған; не істеу керек — «Бот және есептер» бетіндегі «Бот қазір» бөлімінде.", "home.send.title": "Хабарлама неге әлі жіберілмейді", "ui.plan.startTip": "Күнтізбе осы күннен бастап 60 күнге көрсетіледі.", "ui.plan.f.rubricTip": "Айдардың үлес мақсатынан ауытқымағанын көру үшін айдарды таңдаңыз.", @@ -987,7 +985,7 @@ "botp.tg.state.none": "Қазір: байланыстырылмаған", "botp.tg.state.noneWhy": "Мақұлдау сөзі әлі берілмеген, сондықтан бот иесін әлі білмейді.", "botp.tg.state.waiting": "Қазір: сөзді күтуде", - "botp.tg.state.waitingWhy": "Мақұлдау сөзі берілген. Бот сіз оны өз Telegram-ыңыздан жазғаныңызды күтуде. Ескі сөз келмесе, төменде жаңасын беріңіз.", + "botp.tg.state.waitingWhy": "Мақұлдау сөзі берілген. Бот сіз оны өз Telegram-ыңыздан жазғаныңызды күтуде.", "botp.tg.state.bound": "Қазір: байланыстырылған", "botp.tg.state.boundWhy": "Бот тек сізге жауап береді. Байланыстыру арналарға жіберуді қоспайды: әр жарияланым бұрынғыдай сіздің мақұлдауыңызды күтеді.", "botp.tg.word.newH": "Жаңа сөз беру", @@ -995,9 +993,9 @@ "botp.tg.word.hintReplace": "Жаңа сөз ескісін бірден ауыстырады: ескісі ботта да, хаттар үшін де жарамай қалады. Бас және кіші әріптер ажыратылмайды.", "botp.tg.word.mismatch": "Сөздер сәйкес келмеді, сөз өзгерген жоқ. Екі өріске де бірдей сөз енгізіңіз.", "botp.tg.word.bound": "Бот иесіне байланыстырылған, сондықтан сөзді мұнда өзгертуге болмайды. Бұл сіздің аккаунтыңыз болмаса, командаға жазыңыз.", - "botp.tg.word.env": "Сөз өзгертілмеді: бот хабарлары сайттың басқа нұсқасына келеді. «Бот және есептер» бетін сол жерде ашыңыз — сілтеме төменде.", + "botp.tg.word.env": "Сөз өзгертілмеді: бұл нұсқада бот хабарлама қабылдамайды, сондықтан мұнда сөз беру мүмкін емес.", "botp.tg.word.fixed": "Мақұлдау сөзін команда берген, оны мұнда өзгертуге болмайды. Командаға жазыңыз.", - "botp.tg.word.where": "Жаңа сөзді бот хабарламаларын қабылдайтын нұсқада беруге болады:", + "botp.tg.word.where": "Жаңа сөзді бот хабарламаларын жіберетін жерде беруге болады — {where}:", "botp.tg.check.label": "Сөзді тексеру", "botp.tg.check.btn": "Тексеру", "botp.tg.check.ok": "Мақұлдау сөзі сәйкес келеді. Оны ботқа жазыңыз.", @@ -1133,7 +1131,6 @@ "now.env.preview": "тексеруге арналған жобалық нұсқа", "now.env.local": "осы нұсқа", "now.bind.on": "Байланыстыру: бот {who} аккаунтына байланған және тек соған жауап береді.", - "now.bind.off": "Байланыстыру: бот әлі сіздің аккаунтыңызға байланбаған. Кім шешеді: сіз. Не істеу керек: ботқа /start және мақұлдау сөзін жазыңыз.", "now.bind.elsewhere": "Иесін байланыстыруды бот пәрмендерін қабылдайтын нұсқа жүргізеді.", "now.send.ok": "Жиынтықтарды жіберу: жұмыс істейді, жеткізу {time} (Алматы уақыты) расталды.", "now.send.unchecked": "Жиынтықтарды жіберу: чат таңдалған, бірақ жеткізу әлі расталмаған.", @@ -1178,7 +1175,7 @@ "now.q.chWhy": "Не үшін: онда тек сіз мақұлдаған сынақ жарияланымдары кетеді, оларды нағыз арналардан бұрын көресіз.", "now.q.smWhy": "Не үшін: бот жиынтықтар мен есептерді осында жібереді, чат таңдалмаса жіберу өшірулі.", "bot.you": "сізге", - "botp.unchecked": "Жіберу дайын, бірақ жеткізу әлі расталмаған", + "botp.unchecked": "Жіберу әзірге жұмыс істемейді: жеткізу әлі расталмаған", "botp.tg.recv.elsewhere": "Бот хабарламалары мен батырмалары басқа нұсқаға келеді.", "deploy.note.brm171": "«Бот және есептер» бетінде және боттың «Күй» жауабында бірдей көрінеді: пәрмендерді кім қабылдайды, байланыстыру, жиынтықтарды жіберу және сіздің шешіміңізді қанша нәрсе күтуде; жіберу жеткізу расталғаннан кейін ғана қосылады. (BRM-171)", "strat.h": "90 күндік стратегия", @@ -1299,5 +1296,21 @@ "mat.field.channel": "арна", "mat.field.publishAt": "шығу уақыты", "mat.field.cta": "әрекетке шақыру", - "deploy.note.brm58": "«Жоспар және идеялар банкі» бетінде әр жазбаның идеядан нәтижеге дейінгі жолы көрінеді: көзі, бренд жадындағы фактілер, арна, шығу уақыты, әрекетке шақыру және нұсқа; «жарияланды» тек сілтемемен қойылады, ал тексерілмеген фактісі бар жазба тек Татьяна келіскеннен кейін шығады. (BRM-58)" + "deploy.note.brm58": "«Жоспар және идеялар банкі» бетінде әр жазбаның идеядан нәтижеге дейінгі жолы көрінеді: көзі, бренд жадындағы фактілер, арна, шығу уақыты, әрекетке шақыру және нұсқа; «жарияланды» тек сілтемемен қойылады, ал тексерілмеген фактісі бар жазба тек Татьяна келіскеннен кейін шығады. (BRM-58)", + "now.cmd.moving": "Бот командаларын әзірге {where} қабылдайды. Сіздің өніміңіз жаңартуда ботты өзіне алады — сонда байланыстыру, сұрақтар мен шешімдер осында болады. Кім шешеді: команда, сізден ештеңе керек емес.", + "now.bind.waiting": "Байланыстыру: сөзді күтуде. Кім шешеді: сіз. Не істеу керек: «Ботты Telegram-да ашу» түймесін, содан кейін «Start» басып, ботқа мақұлдау сөзін жазыңыз.", + "now.bind.none": "Байланыстыру: байланыстырылмаған — мақұлдау сөзі әлі берілмеген. Кім шешеді: сіз. Не істеу керек: «Бот және есептер» бетіндегі «Telegram-дағы бот» бөлімінде сөз беріп, оны ботқа жазыңыз.", + "now.bind.moving": "Байланыстыру: сіздің өніміңіз ботты өзіне алғанда осында пайда болады. Сонда «Ботты Telegram-да ашу» түймесін басып, ботқа мақұлдау сөзін жазыңыз.", + "now.send.moving": "Жиынтықтарды жіберу: сіздің өніміңізден әзірге жүрмейді — ботты басқа нұсқа ұстап тұр. Сізден ештеңе керек емес.", + "now.wait.moving": "Шешіміңізді күтуде: сіздің өніміңіз ботты өзіне алғанда осында пайда болады.", + "now.q.moving": "Бот сұрақтары мен шешімдеріңіз сіздің өніміңіз ботты өзіне алғанда осында пайда болады.", + "now.openBot": "Ботты Telegram-да ашу", + "now.openBotHint": "Ботпен жеке чатыңыз ашылады: «Start» басып, мақұлдау сөзін жазыңыз.", + "now.summaryHere": "Жиынтықтарды ботпен жеке чатыма жіберу", + "now.summaryHereHint": "Жиынтықтар мен есептер ботпен жеке чатыңызға келеді, бірден тексеру хабарламасы келеді. Арналарға ештеңе кетпейді.", + "now.more": "Толығырақ — «Бот және есептер» бетінде", + "botp.tg.recv.moving": "Бот хабарламалары мен түймелері әзірге басқа нұсқаға келеді. Сіздің өніміңіз жаңартуда ботты өзіне алады, сізден ештеңе керек емес.", + "botp.tg.word.whereNone": "Мұнда сөз беру мүмкін емес: бот бұл нұсқада әзірге хабарлама қабылдамайды. Кім шешеді: команда, сізден ештеңе керек емес.", + "bot.bind.summary": "Жиынтықтар мен есептерді осында, осы жеке чатқа жіберейін бе? Бірден тексеру хабарламасы келеді. Арналарға ештеңе кетпейді.", + "ui.sum.schedOnUnchecked": "Кесте бойынша жіберу қосулы, бірақ Telegram-ға жеткізу әлі расталмаған — «Бот және есептер» бетіндегі «Бот қазір» бөлімін қараңыз." } diff --git a/locales/ru.json b/locales/ru.json index 3ee637b..f1275bd 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -420,7 +420,6 @@ "bot.soon.settings": "Этот раздел скоро появится.", "bot.menu.pause": "Пауза", "bot.soon.pause": "Этот раздел скоро появится.", - "bot.off": "Отправка выключена: боту не хватает ключа или чата. Подробности — на странице «Бот и отчёты».", "bot.none": "не указано", "bot.on": "включён", "bot.offShort": "выключен", @@ -432,7 +431,6 @@ "bot.bind.wrong": "Слово для одобрения не подошло. Проверьте его на странице «Бот и отчёты» или задайте там новое и напишите его сюда.", "bot.bind.done": "Готово, бот подключён к вашему аккаунту.", "bot.bind.noWord": "Слово для одобрения ещё не задано. Задайте его на странице «Бот и отчёты» и напишите его сюда.", - "bot.status": "Ждут вашего решения: {wait}. Отправка: {state}.", "bot.approvals.empty": "Сейчас нечего согласовывать.", "bot.plan.empty": "В контент-плане пока нет записей с датой.", "bot.pause.done": "Все отправки остановлены.", @@ -765,11 +763,11 @@ "botp.cause.rules": "не отправлено: так решили правила на странице «Стратегия и правила»", "botp.retry": "Повтор — {time}", "why.tg.key": "Отправка в Telegram выключена: отдельный бот для ваших согласований ещё не подключён. Его подключает команда, от вас ничего не нужно.", - "why.tg.chat": "Бот подключён и отвечает вам в Telegram. Отправка сводок и публикаций выключена намеренно: пока вы не выбрали чат для сообщений, ничего не уходит без вашего ведома. Включим, когда вы выберете чат.", + "why.tg.chat": "Отправка в Telegram выключена: не выбран чат для сводок. Что сделать — написано в «Бот сейчас» на странице «Бот и отчёты».", "why.li.key": "Отправка в LinkedIn выключена: ждём одобрения приложения LinkedIn. Пока публикации сохраняются как черновики; от вас ничего не нужно.", "why.li.author": "Отправка в LinkedIn выключена: доступ есть, но не выбран профиль, от имени которого публиковать. Профиль подключает команда, от вас ничего не нужно.", "why.tg.short.key": "Отдельный бот для согласований ещё не подключён; подключает команда.", - "why.tg.short.chat": "Бот подключён; отправка выключена намеренно, пока не выбран чат для сообщений.", + "why.tg.short.chat": "Не выбран чат для сводок; что сделать — в «Бот сейчас» на странице «Бот и отчёты».", "home.send.title": "Почему сообщения пока не уходят", "ui.plan.startTip": "С этой даты начинается календарь на 60 дней.", "ui.plan.f.rubricTip": "Выберите рубрику — по ней видно, соблюдается ли цель по доле.", @@ -987,7 +985,7 @@ "botp.tg.state.none": "Сейчас: не привязано", "botp.tg.state.noneWhy": "Слово для одобрения ещё не задано, поэтому бот пока не знает, кто владелец.", "botp.tg.state.waiting": "Сейчас: ждёт слова", - "botp.tg.state.waitingWhy": "Слово для одобрения задано. Бот ждёт, когда вы напишете ему это слово из своего Telegram. Если старое слово не подходит, задайте новое ниже.", + "botp.tg.state.waitingWhy": "Слово для одобрения задано. Бот ждёт, когда вы напишете ему это слово из своего Telegram.", "botp.tg.state.bound": "Сейчас: привязано", "botp.tg.state.boundWhy": "Бот отвечает только вам. Привязка не включает отправку в каналы: каждая публикация по-прежнему ждёт вашего одобрения.", "botp.tg.word.newH": "Задать новое слово", @@ -995,9 +993,9 @@ "botp.tg.word.hintReplace": "Новое слово сразу заменит старое: старое перестанет подходить и в боте, и для писем. Большие и маленькие буквы не различаются.", "botp.tg.word.mismatch": "Слова не совпали, слово не изменено. Введите одно и то же слово в оба поля.", "botp.tg.word.bound": "Бот уже привязан к владельцу, поэтому слово здесь менять нельзя. Если это не ваш аккаунт, напишите команде.", - "botp.tg.word.env": "Слово не изменено: сообщения бота приходят в другую версию сайта. Откройте «Бот и отчёты» там — ссылка ниже.", + "botp.tg.word.env": "Слово не изменено: в этой версии бот не принимает сообщения, поэтому слово здесь задать нельзя.", "botp.tg.word.fixed": "Слово для одобрения задано командой, здесь его менять нельзя. Напишите команде.", - "botp.tg.word.where": "Задать новое слово можно в версии, которая принимает сообщения бота:", + "botp.tg.word.where": "Задать новое слово можно там, куда бот присылает сообщения, — {where}:", "botp.tg.check.label": "Проверить слово", "botp.tg.check.btn": "Проверить", "botp.tg.check.ok": "Слово для одобрения подходит. Напишите его боту.", @@ -1133,7 +1131,6 @@ "now.env.preview": "черновая версия для проверки", "now.env.local": "эта версия", "now.bind.on": "Привязка: бот привязан к аккаунту {who} и отвечает только ему.", - "now.bind.off": "Привязка: бот ещё не привязан к вашему аккаунту. Кто снимает: вы. Что сделать: напишите боту /start и слово для одобрения.", "now.bind.elsewhere": "Привязку владельца ведёт версия, которая принимает команды бота.", "now.send.ok": "Отправка сводок: работает, доставка подтверждена {time} по Алматы.", "now.send.unchecked": "Отправка сводок: чат выбран, но доставка ещё не подтверждена.", @@ -1178,7 +1175,7 @@ "now.q.chWhy": "Зачем: туда уходят только пробные публикации с вашим одобрением, чтобы вы увидели их до настоящих каналов.", "now.q.smWhy": "Зачем: сюда бот присылает сводки и отчёты, а без выбранного чата отправка выключена.", "bot.you": "вам", - "botp.unchecked": "Отправка готова, но доставка ещё не подтверждена", + "botp.unchecked": "Отправка пока не работает: доставка ещё не подтверждена", "botp.tg.recv.elsewhere": "Сообщения и кнопки бота приходят в другую версию.", "deploy.note.brm171": "На «Бот и отчёты» и в ответе бота на «Статус» одинаково видно: кто принимает команды, привязка, отправка сводок и сколько решений ждут вас; отправка включается только после подтверждённой доставки. (BRM-171)", "strat.h": "Стратегия на 90 дней", @@ -1299,5 +1296,21 @@ "mat.field.channel": "канал", "mat.field.publishAt": "время выхода", "mat.field.cta": "призыв к действию", - "deploy.note.brm58": "На «Плане и банке идей» у каждой записи виден путь от идеи до результата: источник, факты из памяти бренда, канал, время выхода, призыв к действию и версия; «опубликовано» ставится только со ссылкой, а запись с непроверенным фактом уходит только после согласования Татьяны. (BRM-58)" + "deploy.note.brm58": "На «Плане и банке идей» у каждой записи виден путь от идеи до результата: источник, факты из памяти бренда, канал, время выхода, призыв к действию и версия; «опубликовано» ставится только со ссылкой, а запись с непроверенным фактом уходит только после согласования Татьяны. (BRM-58)", + "now.cmd.moving": "Команды бота пока принимает {where}. Ваш продукт возьмёт бота себе при обновлении — тогда привязка, вопросы и решения будут здесь. Кто снимает: команда, от вас ничего не нужно.", + "now.bind.waiting": "Привязка: ждёт слова. Кто снимает: вы. Что сделать: нажмите «Открыть бота в Telegram», затем «Start» и напишите боту слово для одобрения.", + "now.bind.none": "Привязка: не привязано — слово для одобрения ещё не задано. Кто снимает: вы. Что сделать: задайте слово на странице «Бот и отчёты» в разделе «Бот в Telegram», затем напишите его боту.", + "now.bind.moving": "Привязка: появится здесь, когда ваш продукт возьмёт бота себе. Тогда нажмите «Открыть бота в Telegram» и напишите боту слово для одобрения.", + "now.send.moving": "Отправка сводок: из вашего продукта пока не идёт — бота держит другая версия. От вас ничего не нужно.", + "now.wait.moving": "Ждут вашего решения: появятся здесь, когда ваш продукт возьмёт бота себе.", + "now.q.moving": "Вопросы бота и ваши решения появятся здесь, когда ваш продукт возьмёт бота себе.", + "now.openBot": "Открыть бота в Telegram", + "now.openBotHint": "Откроется ваш личный чат с ботом: нажмите «Start» и напишите слово для одобрения.", + "now.summaryHere": "Присылать сводки в мой личный чат с ботом", + "now.summaryHereHint": "Сводки и отчёты будут приходить в ваш личный чат с ботом, сразу придёт проверочное сообщение. В каналы ничего не уходит.", + "now.more": "Подробнее — на странице «Бот и отчёты»", + "botp.tg.recv.moving": "Сообщения и кнопки бота пока приходят в другую версию. Ваш продукт возьмёт бота себе при обновлении, от вас ничего не нужно.", + "botp.tg.word.whereNone": "Здесь слово задать нельзя: бот пока не принимает сообщения в этой версии. Кто снимает: команда, от вас ничего не нужно.", + "bot.bind.summary": "Присылать сводки и отчёты сюда, в этот личный чат? Сразу придёт проверочное сообщение. В каналы ничего не уходит.", + "ui.sum.schedOnUnchecked": "Отправка по расписанию включена, но доставка в Telegram ещё не подтверждена — смотрите «Бот сейчас» на странице «Бот и отчёты»." } diff --git a/src/bot-page.js b/src/bot-page.js index f0e56a8..e7e408c 100644 --- a/src/bot-page.js +++ b/src/bot-page.js @@ -4,7 +4,7 @@ import { t } from "./i18n.js"; import { almatyTime } from "./deploy-status.js"; import { localParts } from "./summary-schedule.js"; import { deployBox } from "./site.js"; -import { sendLine, waitLine } from "./bot.js"; +import { sendLine, nowLines, whoOf } from "./bot.js"; const KINDS = ["day", "week"]; const MAX_ERRORS = 20; @@ -169,39 +169,50 @@ ${logSum}${log}`; // BRM-171: где принимаются команды бота: here — эта версия, elsewhere — другая (ссылка), none — никуда. export function cmdWhere(view) { const b = view.bot ?? {}; + if (view.moving) return "moving"; // BRM-180: ваш продукт, а бота держит другая версия — без ссылок туда if (view.receiverUrl) return "elsewhere"; if (b.found && b.receiving && b.here) return "here"; if (b.found && !b.receiving) return "none"; - return b.found === false ? "noBot" : "here"; + if (b.found === false) return "noBot"; + // BRM-180: бот ещё не проверен — как у доставки: эта версия не принимает сообщения — «пока никуда не приходят». + return view.delivery?.problem?.code === "elsewhere" ? "none" : "here"; +} +const linesOf = (lang, view) => nowLines(lang, { where: cmdWhere(view), env: view.env, receiverEnv: view.receiverEnv, bound: Boolean(view.bound), + who: whoOf(view.bound), wordSet: view.wordSet, delivery: view.delivery, decisions: view.decisions }, almatyTime); +const cls = (ok) => (ok === null ? "" : ` class="st ${ok ? "ok" : "off"}"`); +// BRM-180: кнопка-ссылка «Открыть бота в Telegram» — завершить привязку (бот найден, привязки нет, команды здесь). +function openBotBtn(lang, view) { + const b = view.bot ?? {}; + if (view.bound || !b.found || !b.username || cmdWhere(view) !== "here") return ""; + return `
${esc(t(lang, "now.openBot"))} ${esc(t(lang, "now.openBotHint"))}
`; } -const whoOf = (o) => (!o ? null : o.name && o.username ? `${o.name} (@${o.username})` : o.name ?? (o.username ? "@" + o.username : null)); -// BRM-171: «Бот сейчас» — те же строки, что бот отвечает на «Статус»: команды, привязка, отправка, решения. +// BRM-171/180: «Бот сейчас» — те же строки, что бот отвечает на «Статус»: команды, привязка, отправка, решения. function nowBox(lang, view, q) { const N = (k, v) => esc(t(lang, "now." + k, v)); const where = cmdWhere(view); - const there = view.receiverUrl ? ` ${N("open")}` : ""; - const cmd = where === "elsewhere" ? N("cmd.elsewhere", { where: t(lang, "now.env." + (view.receiverEnv ?? "local")) }) + there - : where === "here" ? N("cmd.here", { where: t(lang, "now.env." + (view.env ?? "local")) }) - : N("cmd." + where); - const who = whoOf(view.bound); - const bind = where === "elsewhere" ? N("bind.elsewhere") : view.bound ? N("bind.on", { who: who ?? t(lang, "bot.you") }) : N("bind.off"); + const there = where === "elsewhere" && view.receiverUrl ? ` ${N("open")}` : ""; const d = view.delivery ?? { problem: null }; - const sendCls = d.problem ? "off" : "ok"; - const wait = where === "elsewhere" ? N("wait.elsewhere") : esc(waitLine(lang, view.decisions ?? { total: 0, parts: {} })); const dc = view.dcMsg ? `${N("dc." + view.dcMsg)}
` : ""; - const canCheck = view.connected && !d.paused; - const check = `${canCheck ? `${N("checkHint")}
` : `${N("checkOff")}
`}`; const detail = d.problem?.detail ? `${N("summaryHereHint")}
` : ""; + const canCheck = where === "here" && view.connected && !d.paused; + const check = where !== "here" ? "" : `${canCheck ? `${N("checkHint")}
` : `${N("checkOff")}
`}`; return `${N("lead")}
${N("q.moving")}
`; if (cmdWhere(view) === "elsewhere") return `${head}${N("q.elsewhere")}${view.receiverUrl ? ` ${N("open")}` : ""}
`; const sv = view.card; if (!sv) return ""; @@ -238,7 +250,7 @@ function tgBox(lang, view, q) { : `${L("err." + (b.error ?? "unknown"))}
${L("do." + (b.error ?? "unknown"))}
`; const recv = b.found ? (b.receiving ? `${L("recv.on")}
` : `${L("recv.off")}
${L("recv.offDo")}
`) : ""; const o = view.bound; - const who = !o ? null : o.name && o.username ? `${o.name} (@${o.username})` : o.name ?? (o.username ? "@" + o.username : null); + const who = whoOf(o); // BRM-155: статус привязки — не привязано (слова нет) / ждёт слова / привязано. const state = o ? "bound" : view.wordSet ? "waiting" : "none"; const stateBox = `${L("state." + state)}
${L("state." + state + "Why")}
`; @@ -250,7 +262,13 @@ function tgBox(lang, view, q) { : view.wordSetup ? `${L(view.wordSet ? "word.hintReplace" : "word.hint")}
${view.wordSet ? `${L("word.onlyOwner")}
` : ""}` + (view.wordSet ? `` : "") - : `${L("word.where")}${view.wordWhere ? ` ${esc(view.wordWhere)}` : ""}
`; + : view.wordWhere ? `${L("word.where", { where: t(lang, "now.env." + (view.wordWhereEnv ?? "local")) })} ${esc(view.wordWhere)}
` + : `${L("word.whereNone")}
`; + if (view.moving) { + return `${L("recv.moving")}
${word}${esc(t(lang, "now.bind.moving"))}
+${L("safe")}
`; + } if (view.receiverUrl) { return `${L("recv.elsewhere")}
${word}${esc(t(lang, "now.bind.elsewhere"))} ${esc(t(lang, "now.open"))}
@@ -268,7 +286,8 @@ export function botPage(lang = "ru", view, q = "", deployView = null) { const L = (k, v) => esc(t(lang, "botp." + k, v)); // BRM-171: «включена» — только после подтверждённой доставки; иначе что мешает, кто снимает, что сделать. const d = view.delivery; - const status = view.sending + const status = view.moving ? `${L("off")}
${p(esc(t(lang, "now.send.moving")))}` + : view.sending ? `${L("on")}
` : d && d.ready && !d.confirmed && !view.paused ? `${L("unchecked")}
${p(esc(sendLine(lang, d, almatyTime)))}` : `${L("off")}
` + (view.paused ? p(L("why.paused")) : "") + (d?.problem && !view.paused ? p(esc(sendLine(lang, d, almatyTime))) : view.missing ? p(esc(t(lang, "why.tg." + view.missing))) : view.paused ? "" : p(L("why.noAccess"))); @@ -291,7 +310,7 @@ export function botPage(lang = "ru", view, q = "", deployView = null) { return `${L("lead")}
diff --git a/src/bot.js b/src/bot.js index 76abe56..263039c 100644 --- a/src/bot.js +++ b/src/bot.js @@ -51,6 +51,30 @@ export function sendLine(lang, d, time = (x) => x) { const head = p.code === "unchecked" ? T("send.unchecked") : T("send.off", { what: T("what." + p.code) }); return `${head} ${t(lang, "sv.who." + p.who)}. ${T("do." + p.code)}`; } +// BRM-180: строки состояния бота — одни для ответа «Статус», «Бот сейчас» на «Бот и отчёты» и на главной. +// v: where (here | elsewhere | moving | none | noBot), env, receiverEnv, who (имя владельца или null), bound, wordSet, +// delivery (state() доставки), decisions. Возвращает [{ id, ok, text }]. +export function nowLines(lang, v, time = (x) => x) { + const T = (k, x) => t(lang, "now." + k, x); + const envName = (e) => T("env." + (e ?? "local")); + const w = v.where ?? "here"; + const cmd = w === "elsewhere" ? T("cmd.elsewhere", { where: envName(v.receiverEnv) }) + : w === "moving" ? T("cmd.moving", { where: envName(v.receiverEnv) }) + : w === "here" ? T("cmd.here", { where: envName(v.env) }) : T("cmd." + w); + const bindState = w === "elsewhere" || w === "moving" ? w : v.bound ? "on" : v.wordSet ? "waiting" : "none"; + const bind = T("bind." + bindState, { who: v.who || t(lang, "bot.you") }); + const d = v.delivery ?? { problem: null }; + const send = w === "moving" ? T("send.moving") : sendLine(lang, d, time); + const wait = w === "elsewhere" || w === "moving" ? T("wait." + w) : waitLine(lang, v.decisions ?? { total: 0, parts: {} }); + return [ + { id: "cmd", ok: w === "here", text: cmd }, + { id: "bind", ok: bindState === "on", text: bind }, + { id: "send", ok: w !== "moving" && !d.problem, text: send }, + { id: "pub", ok: null, text: T("pub") }, + { id: "wait", ok: null, text: wait }, + ]; +} +export const whoOf = (o) => (!o ? null : o.name && o.username ? `${o.name} (@${o.username})` : o.name ?? (o.username ? "@" + o.username : null)); export function waitLine(lang, dec) { const T = (k, v) => t(lang, "now." + k, v); const parts = Object.entries(dec.parts).filter(([, n]) => n > 0).map(([k, n]) => `${T("part." + k)}: ${n}`); @@ -72,7 +96,7 @@ export function createBot({ store, telegram, pub, owner, getPlan, savePlan, tran const statusText = (who) => { const d = delivery(); const dec = decisions ? decisions() : { total: ideas().filter((i) => i.status === "review").length, parts: {} }; - return [N("cmd.here", { where: N("env." + envOf(siteUrl)) }), N("bind.on", { who: who || L("you") }), sendLine(lang, d, when), N("pub"), waitLine(lang, dec)].join("\n"); + return nowLines(lang, { where: "here", env: envOf(siteUrl), bound: true, who, delivery: d, decisions: dec }, when).map((x) => x.text).join("\n"); }; // Проверочное сообщение в чат сводок; при неудаче — причина тем же текстом, что на странице. async function checkDelivery(chat) { @@ -104,9 +128,7 @@ export function createBot({ store, telegram, pub, owner, getPlan, savePlan, tran async function section(chat, key) { const s = pub.status(); if (key === "status") { - const o = store.owner?.(); - const who = o ? (o.name && o.username ? `${o.name} (@${o.username})` : o.name ?? (o.username ? "@" + o.username : null)) : null; - return send(chat, statusText(who), sendButtons(delivery())); + return send(chat, statusText(whoOf(store.owner?.())), sendButtons(delivery())); } if (key === "approvals") return showApprovals(chat); if (key === "plan") { @@ -114,7 +136,10 @@ export function createBot({ store, telegram, pub, owner, getPlan, savePlan, tran return send(chat, next.length ? next.map((i) => `${i.date} — ${i.title}`).join("\n") : L("plan.empty")); } if (key === "channels") { - return send(chat, sendLine(lang, delivery(), when) + "\n" + Object.entries(s.channels).map(([k, c]) => `${k}: ${c.stopped ? L("paused") : c.connected ? L("on") : L("offShort")}`).join("\n")); + // BRM-180: telegram «включён» — только после подтверждённой доставки, как в строке «Отправка сводок». + const d = delivery(); + const on = (k, c) => c.connected && (k !== "telegram" || !d.problem); + return send(chat, sendLine(lang, d, when) + "\n" + Object.entries(s.channels).map(([k, c]) => `${k}: ${c.stopped ? L("paused") : on(k, c) ? L("on") : L("offShort")}`).join("\n")); } if (key === "strategy" && strategyCard) { const v = strategyCard.view(); @@ -204,7 +229,10 @@ export function createBot({ store, telegram, pub, owner, getPlan, savePlan, tran if (owner.verify(text) === "ok") { const name = [from?.first_name, from?.last_name].filter(Boolean).join(" ") || null; store.bind(from.id, { name, username: from?.username ?? null, at: now().toISOString() }); - await sendMenu(chat, L("bind.done")); return { ok: true, bound: true }; + await sendMenu(chat, L("bind.done")); + // BRM-180: сразу после привязки — выбрать этот личный чат для сводок одной кнопкой. + if (strategyCard && delivery().problem?.code === "chat") await send(chat, L("bind.summary"), [[{ text: t(lang, "sv.req.summaryHere"), callback_data: "ss:here" }]]); + return { ok: true, bound: true }; } await send(chat, L("bind.wrong")); return { ok: true, denied: true }; } diff --git a/src/server.js b/src/server.js index 5f1a082..ec10b8b 100644 --- a/src/server.js +++ b/src/server.js @@ -7,7 +7,7 @@ import { PERIODS, buildSummary, createMetricsStore, isDate as isDay } from "./me import { createTelegram } from "./telegram.js"; import { createDelivery } from "./delivery.js"; import { createLinkedIn } from "./linkedin.js"; -import { createBot, createBotStore, envOf, mockTranscriber } from "./bot.js"; +import { createBot, createBotStore, envOf, mockTranscriber, sendLine } from "./bot.js"; import { createPublisher } from "./publisher.js"; import { createStrategy } from "./strategy.js"; import { createStrategyCard, strategyBox } from "./strategy-card.js"; @@ -28,12 +28,12 @@ import { createFactsStore, factView, caseView, BUCKETS, LEVELS, STAGES as FACT_S import { SEED_FACTS, SEED_CASES, SEED_QUESTIONS } from "./facts-seed.js"; import { STATUSES as IDEA_STATUSES, decide, publish, submit, touchedByEdit, withApproval } from "./approval.js"; import { brief, createAssetStore, KINDS as ASSET_KINDS, LINK_FILTERS } from "./assets.js"; -import { botPage, botView } from "./bot-page.js"; +import { botPage, botView, homeNowBox } from "./bot-page.js"; import { pickIdea, planCard } from "./plan-card.js"; import { withMaterial, editCard, move as moveMaterial, risky, approvedBy, DECIDER as MAT_DECIDER } from "./material.js"; import { materialCard, fromLocal } from "./material-card.js"; import { docPage, homePage, sampleFile, pageHtml, regionsBox, competitorsBox, fillSelect, metricsTable, marketSamples } from "./site.js"; -import { createDeployStatus, tokenOk } from "./deploy-status.js"; +import { almatyTime, createDeployStatus, tokenOk } from "./deploy-status.js"; import { TEXTS, pickLang, t } from "./i18n.js"; import { DEFAULT_SETTINGS, addDays, buildState, isDate, validateIdea } from "./plan.js"; @@ -113,10 +113,13 @@ export function createApp({ file, oppsFile, metricsFile, telegram: rawTelegram = // BRM-164: слово задаётся и проверяется там, где бот на самом деле принимает сообщения (по ответу Telegram), // а не по настройке версии: иначе слово сохраняется в одной версии, а бот сверяет его в другой. const wordHere = () => !owner.fixed() && !receiverUrl() && (identity.view().here === true || Boolean(webhook)); + // BRM-180: эта версия — ваш продукт, а сообщения бота принимает другая: ссылок туда нет, ваш продукт возьмёт бота себе. + const moving = () => envOf(siteUrl) === "prod" && Boolean(receiverUrl()) && envOf(receiverUrl()) !== "prod"; + const wordWhere = () => (wordHere() || envOf(siteUrl) === "prod" ? null : receiverUrl() ?? (/-(pr\d+|staging)\./.test(siteUrl) ? siteUrl.replace(/-(pr\d+|staging)\./, "-prod.") + "/bot.html" : null)); const botPageView = () => ({ ...botView({ pub, jobs, metrics, telegram, testRun }), bot: identity.view(), bound: botStore.owner(), wordSet: owner.isSet(), - delivery: telegram.state(), decisions: ownerDecisions(), card: strategyCard.view(), env: envOf(siteUrl), receiverUrl: receiverUrl(), receiverEnv: receiverUrl() ? envOf(receiverUrl()) : null, - // BRM-155: слово задаётся только там, где бот получает сообщения (версия для проверки) и оно не зашито в окружение. - wordSetup: wordHere(), wordWhere: wordHere() ? null : receiverUrl() ?? (/-(pr\d+|staging)\./.test(siteUrl) ? siteUrl.replace(/-(pr\d+|staging)\./, "-prod.") + "/bot.html" : null) }); + delivery: telegram.state(), decisions: ownerDecisions(), card: strategyCard.view(), env: envOf(siteUrl), moving: moving(), receiverUrl: moving() ? null : receiverUrl(), receiverEnv: receiverUrl() ? envOf(receiverUrl()) : null, + // BRM-155: слово задаётся только там, где бот получает сообщения и оно не зашито в окружение. + wordSetup: wordHere(), wordWhere: wordWhere(), wordWhereEnv: wordWhere() ? envOf(wordWhere()) : null }); // Состояние плана с материалами; идея с датой без материалов помечается noAssets. const state = () => { const s = buildState(plan); @@ -421,7 +424,7 @@ export function createApp({ file, oppsFile, metricsFile, telegram: rawTelegram = // BRM-39: «Рынок» по умолчанию русский, другой язык — только по ?lang= const marketLang = pickLang(new URLSearchParams(query).get("lang")); if (req.method === "GET" && (url === "/" || url === "/index.html")) - return send(200, homePage(pickLang(new URLSearchParams(query).get("lang"), req.headers["x-lang"]), undefined, deploy.view(), sampleSections(), { telegram: telegram.missing?.() ?? null, linkedin: linkedin.missing() }, { approved: strategy.isApproved(), date: (strategy.current()?.approvedAt ?? "").slice(0, 10) }), "text/html"); + return send(200, homePage(pickLang(new URLSearchParams(query).get("lang"), req.headers["x-lang"]), undefined, deploy.view(), sampleSections(), { linkedin: linkedin.missing() }, { approved: strategy.isApproved(), date: (strategy.current()?.approvedAt ?? "").slice(0, 10) }, homeNowBox(pickLang(new URLSearchParams(query).get("lang"), req.headers["x-lang"]), botPageView())), "text/html"); // BRM-74: раздел «Бот и отчёты»; кнопки — формы, после нажатия возвращаемся в раздел. const langQ = new URLSearchParams(query).get("lang") ? `?lang=${pageLang}` : ""; if (req.method === "GET" && url === "/bot.html") { @@ -432,6 +435,15 @@ export function createApp({ file, oppsFile, metricsFile, telegram: rawTelegram = const ok = telegram.connected() && !telegram.state().paused ? (await telegram.check(t("ru", "now.check"))).ok : null; res.writeHead(303, { location: "/bot.html" + langQ + (langQ ? "&" : "?") + "dc=" + (ok === null ? "off" : ok ? "ok" : "fail") + "#botnow" }); return res.end(); } + // BRM-180: «Присылать сводки в мой личный чат с ботом» — тот же ответ, что кнопка «Да, сюда» в боте, и сразу проверка доставки. + if (req.method === "POST" && url === "/bot/summary-here") { + let ok = null; + if (botStore.chatId() !== null && identity.view().here !== false && !receiverUrl()) { + await strategyCard.onButton("ss", ["here"], Date.now()); + ok = telegram.connected() && !telegram.state().paused ? (await telegram.check(t("ru", "now.check"))).ok : null; + } + res.writeHead(303, { location: "/bot.html" + langQ + (langQ ? "&" : "?") + "dc=" + (ok === null ? "off" : ok ? "ok" : "fail") + "#botnow" }); return res.end(); + } if (req.method === "POST" && url === "/bot/test-check") { // BRM-143: проверить доступ проверочного пути сейчас await testRun.diagnose().catch(() => null); res.writeHead(303, { location: "/bot.html" + langQ }); return res.end(); @@ -511,15 +523,18 @@ export function createApp({ file, oppsFile, metricsFile, telegram: rawTelegram = let page = pageHtml(url.slice(1), url === "/market.html" ? marketLang : pageLang); if (url === "/summary.html") { const off = Boolean(pub.status().channels.telegram?.stopped); - page = page.replace('', `${t(pageLang, off ? "ui.sum.schedOff" : telegram.connected() ? "ui.sum.schedOn" : "ui.sum.schedOnNoTg")}
`); + // BRM-180: «включена» — только после подтверждённой доставки; иначе та же строка, что в боте и на «Бот и отчёты». + const ds = telegram.state(); + page = page.replace('', `${t(pageLang, off ? "ui.sum.schedOff" : ds.confirmed ? "ui.sum.schedOn" : telegram.connected() ? "ui.sum.schedOnUnchecked" : "ui.sum.schedOnNoTg")}
`); page = page.replace("