feat(client): support new invite links (t.me/+)
This commit is contained in:
parent
a0bfe2c075
commit
be27e33d61
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import { assertNever } from '@mtcute/core'
|
|||
import { tl } from '@mtcute/tl'
|
||||
import Long from 'long'
|
||||
|
||||
export const INVITE_LINK_REGEX = /^(?:https?:\/\/)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)\/joinchat\/)([\w-]+)$/i
|
||||
export const INVITE_LINK_REGEX = /^(?:https?:\/\/)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)\/(?:joinchat\/|\+))([\w-]+)$/i
|
||||
|
||||
// helpers to normalize result of `resolvePeer` function
|
||||
|
||||
|
|
Loading…
Reference in a new issue