Skip to content

Commit

Permalink
MAX_TELEGRAM_MSG_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliytv committed Sep 4, 2023
1 parent 241e074 commit 5345da5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions demo/.dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 2 additions & 0 deletions npm/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5345da5

Please sign in to comment.