feat: platform update
This commit is contained in:
@@ -13,11 +13,11 @@ export function parseChannelInput(input: string): string | null {
|
||||
|
||||
// Patterns for different URL formats
|
||||
const patterns: RegExp[] = [
|
||||
/telemetr\.me\/content\/([a-zA-Z0-9_]+)/, // telemetr.me/content/rian_ru
|
||||
/telemetr\.me\/([a-zA-Z0-9_]+)/, // telemetr.me/rian_ru (alternative)
|
||||
/t\.me\/([a-zA-Z0-9_]+)/, // t.me/rian_ru or https://t.me/rian_ru
|
||||
/tgstat\.ru\/channel\/@?([a-zA-Z0-9_]+)/, // tgstat.ru/channel/@rian_ru or tgstat.ru/channel/rian_ru
|
||||
/tg\.me\/([a-zA-Z0-9_]+)/, // tg.me/rian_ru
|
||||
/telemetr\.me\/content\/([a-zA-Z0-9_]+)/, // telemetr.me/content/username
|
||||
/telemetr\.me\/([a-zA-Z0-9_]+)/, // telemetr.me/username (alternative)
|
||||
/t\.me\/([a-zA-Z0-9_]+)/, // t.me/username or https://t.me/username
|
||||
/tgstat\.ru\/channel\/@?([a-zA-Z0-9_]+)/, // tgstat.ru/channel/@username or tgstat.ru/channel/username
|
||||
/tg\.me\/([a-zA-Z0-9_]+)/, // tg.me/username
|
||||
];
|
||||
|
||||
for (const pattern of patterns) {
|
||||
|
||||
Reference in New Issue
Block a user