Skip to content

The URL shortener is out of service for days #64

@Wibol

Description

@Wibol

The problem is fixed in my latest Pull Request. You can also replace the "shorten()" function in the "bot.py" file with this new version:

def shorten(self, url):
    try: # Trying to shorten URL
        api = 'https://tinyurl.com/api-create.php?url='
        sresponse = requests.get(api + url)
        surl = sresponse.text
    except Exception as err:
        print('A shortening error occurred:', sresponse.status_code)
        surl = url
    return surl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions