Skip to content

Commit

Permalink
Update packets
Browse files Browse the repository at this point in the history
  • Loading branch information
hanriel committed Oct 5, 2023
1 parent 2952426 commit 44dbe2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edumgt-api",
"version": "0.0.4",
"version": "0.0.5",
"description": "",
"author": "Fedoseev Danil",
"private": true,
Expand Down
11 changes: 10 additions & 1 deletion src/telegram/telegram.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,20 @@ export class TelegramService {
console.log('Taksk Service constructor is started')
}

@Cron('0 45 7 * * 1-5')
@Cron('0 45 7 * * 1-5', {
timeZone: "Asia/Yekaterinburg"
})
handleCron() {
this.bot.telegram.sendMessage(process.env.ADMIN_TG_CHATID, 'Утреннее сообщение в 7:45');
}

@Cron('0 25 21 * * 1-5', {
timeZone: "Asia/Yekaterinburg"
})
handle2Cron() {
this.bot.telegram.sendMessage(process.env.ADMIN_TG_CHATID, 'Вечернее сообщение в 21:25');
}

async getStartMessage(telgramId: number) {

let text: string
Expand Down

0 comments on commit 44dbe2a

Please sign in to comment.