@nitra/telegram 1.2.0 → 1.3.0

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/package.json +2 -2
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nitra/telegram",
3
3
  "description": "telegram helper",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "files": [
@@ -24,7 +24,7 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@nitra/check-env": "^3.2.0",
27
- "@nitra/pino": "^1.5.1"
27
+ "@nitra/pino": "^1.6.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=22.0.0"
package/src/index.js CHANGED
@@ -28,7 +28,8 @@ export const sendMessage = async (text, params) => {
28
28
  log.error(error)
29
29
  return false
30
30
  }
31
- if (res.status > 400) {
31
+ if (res.status >= 400) {
32
+ log.error('Telegram message skipped, not sent ', text)
32
33
  return false
33
34
  }
34
35
  } else {