Skip to content

Commit

Permalink
updated regex to add support for new chat invite links
Browse files Browse the repository at this point in the history
  • Loading branch information
TAMILVIP007 authored Nov 20, 2024
1 parent 7059a84 commit adb9f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const (

var (
USERNAME_RE = regexp.MustCompile(`(?i)@|(?:https?://)?(?:www\.)?(?:telegram\.(?:me|dog)|t\.me)/(@|\+|joinchat/)?`)
TG_JOIN_RE = regexp.MustCompile(`(?i)tg://join\?invite=([a-z0-9_\-]{22})`)
TG_JOIN_RE = regexp.MustCompile(`^(?:https?://)?(?:www\.)?t(?:elegram)?\.(?:org|me|dog)/(?:joinchat/|\+)([\w-]+)$`)
)

var (
Expand Down

0 comments on commit adb9f9a

Please sign in to comment.