ulduldp commited on
Commit
47c8fb6
·
verified ·
1 Parent(s): 35ec707

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -0
index.js CHANGED
@@ -1,11 +1,15 @@
1
  const { Telegraf } = require('telegraf');
2
  //require('dotenv').config();
 
3
 
4
  const bot = new Telegraf("6740023413:AAHZ5iEiXjkY7IGwljg37llFbekKLbIVkkw");
5
  const GROUP_ID = "-5111627225";
6
 
7
  const waitingForFile = new Set();
8
 
 
 
 
9
  // .save command
10
  bot.hears('.save', (ctx) => {
11
  waitingForFile.add(ctx.from.id);
 
1
  const { Telegraf } = require('telegraf');
2
  //require('dotenv').config();
3
+ console.log("starting...");
4
 
5
  const bot = new Telegraf("6740023413:AAHZ5iEiXjkY7IGwljg37llFbekKLbIVkkw");
6
  const GROUP_ID = "-5111627225";
7
 
8
  const waitingForFile = new Set();
9
 
10
+ bot.start((ctx) => ctx.reply('Welcome'))
11
+
12
+
13
  // .save command
14
  bot.hears('.save', (ctx) => {
15
  waitingForFile.add(ctx.from.id);