dsh-tg-bridge 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bridge.mjs +0 -15
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -858,10 +858,6 @@ async function startProgress(chatId, threadId, lang = 'ru') {
|
|
|
858
858
|
chat_id: chatId,
|
|
859
859
|
text: body(),
|
|
860
860
|
disable_web_page_preview: true,
|
|
861
|
-
// Stop is available for as long as the turn runs; the keyboard is cleared
|
|
862
|
-
// when the status turns into the final line, so a stale button cannot be
|
|
863
|
-
// pressed after the work is over.
|
|
864
|
-
reply_markup: stopKeyboard(sessionKey(chatId, threadId), lang),
|
|
865
861
|
...(threadId > 0 ? { message_thread_id: threadId } : {}),
|
|
866
862
|
});
|
|
867
863
|
messageId = res.message_id;
|
|
@@ -1444,17 +1440,6 @@ const lastPrompt = new Map();
|
|
|
1444
1440
|
const approvals = new Map();
|
|
1445
1441
|
let approvalSeq = 0;
|
|
1446
1442
|
|
|
1447
|
-
function stopKeyboard(key, lang = 'ru') {
|
|
1448
|
-
return {
|
|
1449
|
-
inline_keyboard: [
|
|
1450
|
-
[
|
|
1451
|
-
{ text: `⏹ ${t(lang, 'btn.stop')}`, callback_data: 'stop' },
|
|
1452
|
-
{ text: `📄 ${t(lang, 'btn.logs')}`, callback_data: 'logs' },
|
|
1453
|
-
],
|
|
1454
|
-
],
|
|
1455
|
-
};
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1443
|
function errorKeyboard(key, lang = 'ru') {
|
|
1459
1444
|
return {
|
|
1460
1445
|
inline_keyboard: [
|
package/package.json
CHANGED