@wrongstack/telegram 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -648,7 +648,13 @@ var Poller = class _Poller {
648
648
  for (const upd of updates) {
649
649
  if (upd.update_id < this.offset) continue;
650
650
  if (upd.callback_query) {
651
- this.onCallbackQuery(upd.callback_query);
651
+ try {
652
+ this.onCallbackQuery(upd.callback_query);
653
+ } catch (err) {
654
+ this.log.debug(
655
+ `Telegram callback handler failed: ${err instanceof Error ? err.message : String(err)}`
656
+ );
657
+ }
652
658
  this.offset = upd.update_id + 1;
653
659
  continue;
654
660
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/telegram",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack plugin — Telegram bridge: send messages, receive prompts, get notified.",
6
6
  "repository": {
@@ -26,11 +26,11 @@
26
26
  "!dist/**/*.map"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@wrongstack/core": "1.0.1"
29
+ "@wrongstack/core": "1.0.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^26.2.0",
33
- "@wrongstack/core": "1.0.1",
33
+ "@wrongstack/core": "1.0.3",
34
34
  "typescript": "^7.0.2"
35
35
  },
36
36
  "publishConfig": {