Skip to content

Commit

Permalink
fix:
Browse files Browse the repository at this point in the history
  • Loading branch information
rosendolu committed Jul 14, 2024
1 parent 1d254b0 commit 40cd273
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/service/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ const { getLogger } = require('../common/logger');
const utils = require('../common/utils');
const log = getLogger();

const bot = new TelegramBot(this.token, { polling: true, webHook: true });
const token = process.env.TG_TOKEN;
const bot = new TelegramBot(token, { polling: true });

class Service extends CreateCompose {
constructor() {
super();
this.token = process.env.TG_TOKEN;
this.token = token;
this.groupId = process.env.TG_GROUP_ID;
this.bot = bot;
this.init();
Expand Down

0 comments on commit 40cd273

Please sign in to comment.