-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.mjs
56 lines (50 loc) · 1.11 KB
/
constants.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export const TG_DOMAIN = 'https://t.me'
export const BIN = 'tginfo'
export const EXCEPTIONAL_BOT_NAMES = [
'botfather',
'stickers',
'gamee',
'gif',
'imdb',
'wiki',
'music',
'youtube',
'bold',
'vote',
'like',
'ifttt',
'telegraph',
'previews',
'telegramdonate',
'stripe',
'vid',
'pic',
'bing',
'mobile',
]
export const ATTRIBUTES = [
'type',
'username',
'title',
'info',
'verified',
'webUrl',
'tgUrl',
'previewUrl',
'subscribers',
'members',
'online',
'image',
'error',
]
export const TYPE_BOT = 'bot'
export const TYPE_USER = 'user'
export const TYPE_PUBLIC_CHANNEL = 'public_channel'
export const TYPE_PRIVATE_CHANNEL = 'private_channel'
export const TYPE_PUBLIC_GROUP = 'public_group'
export const TYPE_PRIVATE_GROUP = 'private_group'
export const ERROR_USER_DOES_NOT_EXIST = `Sorry, this user doesn't seem to exist.`
export const ERROR_LINK_EXPIRED = 'Sorry, this link has expired.'
export const ERROR_NOT_TELEGRAM_LINK = 'Sorry, this is not a valid Telegram link.'
export const REGEX_USERNAME = /^\w{5,32}$/
export const REGEX_INVITECODE = /^([\w-]{16}|[\w-]{22})$/