Captain Ezio commited on
Commit
461b15e
·
1 Parent(s): a3c8c78
Files changed (1) hide show
  1. Powers/plugins/web_con.py +22 -2
Powers/plugins/web_con.py CHANGED
@@ -301,13 +301,33 @@ async def video_down_up(c: Gojo, m: Message):
301
  LOGGER.error(format_exc())
302
  return
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  __PLUGIN__ = "web support"
305
 
306
  __HELP__ = """
307
  **Available commands**
308
  • /rmbg (/removebg, /removebackground) : Reply to image file or sticker of which you want to remove background
309
- • /song (/yta) <songname or youtube link>
310
- • /vsong (/ytv) <songname or youtube link>
 
311
 
312
  **Bot will not download any song or video having duration greater than 10 minutes (to reduce the load on bot's server)**
313
  """
 
301
  LOGGER.error(format_exc())
302
  return
303
 
304
+ @Gojo.on_message(command(["ig","instagram","insta"]))
305
+ async def download_instareels(c: Gojo, m: Message):
306
+ try:
307
+ reel_ = m.command[1]
308
+ except IndexError:
309
+ await m.reply_text("Give me an link to download it...")
310
+ return
311
+ if not reel_.startswith("https://www.instagram.com/reel/"):
312
+ await m.reply_text("In order to obtain the requested reel, a valid link is necessary. Kindly provide me with the required link.")
313
+ return
314
+ OwO = reel_.split(".",1)
315
+ Reel_ = ".dd".join(OwO)
316
+ try:
317
+ await m.reply_video(Reel_)
318
+ return
319
+ except Exception:
320
+ await m.reply_text("I am unable to reach to this reel.")
321
+ return
322
+
323
  __PLUGIN__ = "web support"
324
 
325
  __HELP__ = """
326
  **Available commands**
327
  • /rmbg (/removebg, /removebackground) : Reply to image file or sticker of which you want to remove background
328
+ • /song (/yta) <songname or youtube link> : Download audio only from provided youtube url
329
+ • /vsong (/ytv) <songname or youtube link> : Download video from provided youtube url
330
+ • /ig (/instagram , /insta) <reel's url> : Download reel from it's url
331
 
332
  **Bot will not download any song or video having duration greater than 10 minutes (to reduce the load on bot's server)**
333
  """