diff --git a/demo/.dockerignore b/demo/.dockerignore deleted file mode 100644 index 15e93b6..0000000 --- a/demo/.dockerignore +++ /dev/null @@ -1,4 +0,0 @@ -Dockerfile -README.md -node_modules -.env \ No newline at end of file diff --git a/npm/package.json b/npm/package.json index 1f1d820..58f7e0e 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,7 +1,7 @@ { "name": "@nitra/telegram", "description": "telegram helper", - "version": "1.0.0", + "version": "1.0.1", "type": "module", "main": "src/index.js", "files": [ diff --git a/npm/src/index.js b/npm/src/index.js index 72744bc..4b65361 100644 --- a/npm/src/index.js +++ b/npm/src/index.js @@ -4,6 +4,8 @@ import { env } from 'node:process' checkEnv(['TELEGRAM_BOT_TOKEN', 'TELEGRAM_CHAT_ID']) +export const MAX_TELEGRAM_MSG_LENGTH = 4096 + export const sendMessage = async (text, params) => { const currentHour = new Date().getHours() if (currentHour >= 8 && currentHour <= 18) {