text: # originally created by
  # https://github.com/Total-Noob-69/X-tra-Telegram/blob/master/userbot/plugins/webupload.py
  # modified by __me__ to suit **my** needs
  """webupload ?(.+?|) --(fileio|oload|anonfiles|transfer|filebin|anonymousfiles|megaupload|bayfiles"""
  
  from uniborg.util import admin_cmd
  import asyncio
  import json
  import os
  
  
  @borg.on(admin_cmd(pattern="webupload ?(.+?|) --(fileinfo|fileio|oload|anonfiles|transfer|filebin|anonymousfiles|megaupload|bayfiles)"))
  async def _(event):
  	await event.edit("processing ...")
  	PROCESS_RUN_TIME = 100
  	input_str = event.pattern_match.group(1)
  	selected_transfer = event.pattern_match.group(2)
  	if input_str:
  		file_name = input_str
  	else:
  		reply = await event.get_reply_message()
  		file_name = await event.client.download_media(
  			reply.media,
  			Config.TMP_DOWNLOAD_DIRECTORY
  		)
  	# a dictionary containing the shell commands
  	CMD_WEB = {
                  "fileinfo": "ffmpeg -i \"file=@{full_file_path}\"",
                  "fileio": "curl -F \"file=@{full_file_path}\" https://file.io",
                  "oloda": "curl -F \"file=@{full_file_path}\" https://api.openload.cc/upload?token=ac0c09b75f63054c",
                  "oload": "curl -F \"file=@{full_file_path}\" https://api.openload.cc/upload",
  		"anonfiles": "curl -F \"file=@{full_file_path}\" https://anonfiles.com/api/upload",
  		"transfer": "curl --upload-file \"{full_file_path}\" https://transfer.sh/{bare_local_name}",
  		"filebin": "curl -X POST --data-binary \"@{full_file_path}\" -H \"filename: {bare_local_name}\" \"https://filebin.net\"",
  		"anonymousfiles": "curl -F file=\"@{full_file_path}\" https://api.anonymousfiles.io/",
  		"megaupload": "curl -F \"file=@{full_file_path}\" https://megaupload.is/api/upload",
  		"bayfiles": ".exec curl -F \"file=@{full_file_path}\" https://bayfiles.com/api/upload"
  	}
  	filename = os.path.basename(file_name)
  	try:
  		selected_one = CMD_WEB[selected_transfer].format(
  			full_file_path=file_name,
                          bare_local_name=filename
  		)
  	except KeyError:
  		await event.edit("Invalid selected Transfer")
  		return
  	cmd = selected_one
          # start the subprocess $SHELL
  	process = await asyncio.create_subprocess_shell(
  		cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
  	)
  	stdout, stderr = await process.communicate()
  	e_response = stderr.decode().strip()
  	# logger.info(e_response)
  	t_response = stdout.decode().strip()
  	# logger.info(t_response)
  	"""if e_response:
  		await event.edit(f"**FAILED** to __transload__: `{e_response}`")
  		return"""
  	if t_response:
  		try:
  			t_response = json.dumps(json.loads(t_response), sort_keys=True, indent=4)
  		except Exception as e:
  			# some sites don't return valid JSONs
  			pass
  		# assuming, the return values won't be longer than
  		# 4096 characters
  		await event.edit(t_response)
  