Enutrof commited on
Commit
eda90c9
·
1 Parent(s): 725c5ae

Removed start-stop

Browse files
Files changed (1) hide show
  1. bot.py +2 -3
bot.py CHANGED
@@ -110,8 +110,7 @@ async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
110
  )
111
  await update.message.reply_text(help_text, parse_mode=ParseMode.MARKDOWN)
112
 
113
- async def downloader(update: Update, context: ContextTypes.DEFAULT_TYPE, url: str,
114
- start_time_str: str, end_time_str: str) -> tuple:
115
  chat_id = update.effective_chat.id
116
 
117
  if not url.startswith(('http://', 'https://')):
@@ -292,7 +291,7 @@ async def download_command_handler(update: Update, context: ContextTypes.DEFAULT
292
  else:
293
  await update.message.reply_text(f"⚠️ '{potential_end_time}' doesn't look like a valid end time. Will download from {start_time_str} to end if applicable.")
294
 
295
- downloaded_file_path, processing_message = await downloader(update, context, url, start_time_str, end_time_str)
296
 
297
  try:
298
  if downloaded_file_path and os.path.exists(downloaded_file_path):
 
110
  )
111
  await update.message.reply_text(help_text, parse_mode=ParseMode.MARKDOWN)
112
 
113
+ async def downloader(update: Update, context: ContextTypes.DEFAULT_TYPE, url: str) -> tuple:
 
114
  chat_id = update.effective_chat.id
115
 
116
  if not url.startswith(('http://', 'https://')):
 
291
  else:
292
  await update.message.reply_text(f"⚠️ '{potential_end_time}' doesn't look like a valid end time. Will download from {start_time_str} to end if applicable.")
293
 
294
+ downloaded_file_path, processing_message = await downloader(update, context, url)
295
 
296
  try:
297
  if downloaded_file_path and os.path.exists(downloaded_file_path):