diff --git a/utils.py b/utils.py index 53118ad..c4f2986 100644 --- a/utils.py +++ b/utils.py @@ -383,7 +383,7 @@ async def get_shortlink(link): if "http" == https: https = "https" link = link.replace("http", https) - url = f'https://shorturllink.in/api' + url = f'https://{SHORTENER_SITE}/api' params = {'api': SHORTENER_API, 'url': link, } @@ -396,8 +396,8 @@ async def get_shortlink(link): return data['shortenedUrl'] else: logger.error(f"Error: {data['message']}") - return f'https://{SHORTENER_SITE}/api?api={SHORTNER_API}&link={link}' + return f'https://{SHORTENER_SITE}/api?api={SHORTNER_API}&url={link}' except Exception as e: logger.error(e) - return f'{SHORTENER_SITE}/api?api={SHORTNER_API}&link={link}' + return f'{https://SHORTENER_SITE}/api?api={SHORTNER_API}&url={link}'