perceval/backends/core/telegram.py
def sanitize_for_archive(url, headers, payload):
        """Sanitize URL of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns the sanitized url, plus the headers and payload
        """
        url = re.sub('bot.*/', 'botXXXXX/', url)

        return url, headers, payload
def sanitize_for_archive(url, headers, payload):
        """Sanitize URL of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns the sanitized url, plus the headers and payload
        """
        url = re.sub('bot.*/', 'botXXXXX/', url)

        return url, headers, payload
def sanitize_for_archive ( url , headers , payload ) : url = re . sub ( 'bot.*/' , 'botXXXXX/' , url ) return url , headers , payload
Sanitize URL of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns the sanitized url, plus the headers and payload
Sanitize URL of a HTTP request by removing the token information before storing / retrieving archived items