dsh-tg-bridge 1.33.0 → 1.33.1
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 +3 -1
- package/callbacks.mjs +402 -498
- package/control/model-card.mjs +2 -2
- package/handle-message.mjs +15 -13
- package/i18n/en/core.mjs +12 -6
- package/i18n/ru/core.mjs +12 -6
- package/i18n/zh/core.mjs +12 -6
- package/package.json +3 -1
- package/quiet-guard.mjs +56 -0
- package/settings-press.mjs +169 -0
- package/telegram.mjs +11 -0
package/bridge.mjs
CHANGED
|
@@ -35,7 +35,8 @@ import { busyNotices, clearBusyNotice, steerAvailable, steerMediaMessage, steerR
|
|
|
35
35
|
import { MAX_PARALLEL, approvals, bufferAlbum, enqueue, lastPrompt, queues, redeliver, rewindUsed, setMessageHandler } from './queue.mjs';
|
|
36
36
|
import { applyAsetJob, settingsChipOf, turnProfileOf } from './profile-view.mjs';
|
|
37
37
|
import { handleMessage } from './handle-message.mjs';
|
|
38
|
-
import {
|
|
38
|
+
import { answerPressFailed, handleCallback, renderTaskCard, taskRows } from './callbacks.mjs';
|
|
39
|
+
import { boundSetOf, handleCardPress } from './settings-press.mjs';
|
|
39
40
|
import { runCommandFromButton } from './run-command.mjs';
|
|
40
41
|
import { startJobLoops } from './job-loops.mjs';
|
|
41
42
|
import { ensureProfile } from './profiles.mjs';
|
|
@@ -441,6 +442,7 @@ async function main() {
|
|
|
441
442
|
await handleCallback(update.callback_query);
|
|
442
443
|
} catch (error) {
|
|
443
444
|
log(`callback error: ${error.message}`);
|
|
445
|
+
await answerPressFailed(update.callback_query);
|
|
444
446
|
}
|
|
445
447
|
continue;
|
|
446
448
|
}
|