vamo_telbot.utils.url_checkers

URL Checkers module.

Attributes

Functions

is_youtube_url(url)

Check if the given URL is a YouTube link.

is_adult_url(url)

Check if the given URL belongs to a known adult website.

is_social_url(url)

Check if the given URL belongs to a known social media website.

Module Contents

vamo_telbot.utils.url_checkers.YOUTUBE_PATTERNS: re.Pattern[str]
vamo_telbot.utils.url_checkers.ADULT_PATTERNS: list[re.Pattern[str]]
vamo_telbot.utils.url_checkers.SOCIAL_PATTERNS: list[re.Pattern[str]]
vamo_telbot.utils.url_checkers.is_youtube_url(url)

Check if the given URL is a YouTube link.

Parameters:

url (str) – The URL to check.

Returns:

True if the URL is a YouTube link, False otherwise.

Return type:

bool

vamo_telbot.utils.url_checkers.is_adult_url(url)

Check if the given URL belongs to a known adult website.

Parameters:

url (str) – The URL to check.

Returns:

True if the URL belongs to a known adult website, False otherwise.

Return type:

bool

vamo_telbot.utils.url_checkers.is_social_url(url)

Check if the given URL belongs to a known social media website.

Parameters:

url (str) – The URL to check.

Returns:

True if the URL belongs to a known social media website, False otherwise.

Return type:

bool