-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot_ui_lang_EN.py
95 lines (84 loc) · 5.08 KB
/
bot_ui_lang_EN.py
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
from config import ADMIN_CONTACT, LIST_LIMIT
t_bot_desc = "Bot verifies a mobile phone number activity status by HLR-lookup. The request is processed by the " \
"communication operator without reaching the phone of the checked subscriber (it is not reflected in " \
"the call details and is not shown to the subscriber). Subscriber information obtained from the HLR " \
"register may indicate: " \
"\n💡 termination of service" \
"\n💡 fixed on-line during the last day" \
"\n💡 home country" \
"\n💡 communication operator" \
"\n💡 service network ID" \
"\n\nIn some cases and countries:" \
"\n ➡ roaming status " \
"\n ➡ IMSI number" \
"\n ➡ porting status to another network. " \
"\n\n🛂 Access to HLR data does not conflict with personal data protection standards and policies (GDPR)."
t_bot_help = f'To correctly identify the requested subscribers - print the number without spaces. Printing with ' \
f'technical symbols is allowed "-" "+" ")(". The bot supports checking up to {LIST_LIMIT} numbers with ' \
f'delimiters: comma, semicolon, tab, space or each number on a new line. ' \
f'\n\n✅ Correct:\n0958656688, (093)345-34-34, 6625533-44 +38(067)222-33-44; 380504456688' \
f'\n\n❌ Wrong:\n095 776-22-13, +38 (095) 3345544, 38050 466 77 88'
t_hlr_desc = "HLR (Home Location Register). Temporary information about the last base station in which subscribers " \
"were fixed. Information is updated when you turn on the phone, move from one BS to another. Based on " \
"the HLR, the operator chooses which BS use to establish a connection with the subscriber. If the " \
"subscriber has not updated his location for a long time (6 ... 24 hours - depending on the chosen " \
"operator's policy), the subscriber is considered absent in the home network. Certain entries of the HLR " \
"register are publicly available and used in the field of advertising. " \
"\nSubscriber information obtained from the HLR may indicate: " \
"\n💡 termination of service" \
"\n💡 fixed on-line during the last day" \
"\n💡 home country" \
"\n💡 communication operator" \
"\n💡 service network ID" \
"\n\nIn some cases and countries:" \
"\n ➡ roaming status " \
"\n ➡ IMSI number" \
"\n ➡ porting status to another network. " \
"\n\n🛂 Access to HLR data does not conflict with personal data protection standards and policies (GDPR)."
t_msg_trust = 'Bot started. You are trusted user. 👍 '
t_msg_untrust = f'🔐 Access denied. Call to {ADMIN_CONTACT} ' \
f'for permission. Your ID - '
t_msg_balance = '💰 Money - '
t_msg_balance_error = 'Account balance not available now'
t_typing_invite = f'Input one or few subscriber\'s numbers (max {LIST_LIMIT}):'
t_typing_error = 'No number. Check typing.'
t_sent_req = 'Sent request:'
t_unexp_status = '📵 Unknown response format'
t_porting = '\n🔃 There are signs of porting to another operator'
t_roaming = '\n♒ reported roaming!'
t_more_time = 'Additional response time...'
t_more_time_no_resp = 'No answer. Try again later.'
t_res_title = '📋 Result for '
t_adm_user_list_head = 'USERS LIST:\n'
t_adm_user_list_tail = "\nAdmin commands:\n" \
"📟 add_user <telegramID> <Alias>\n" \
"📟 block_user <telegramID>\n\n" \
"Arguments:\n" \
"➡ telegramID - only digits\n" \
"➡ Alias - сhosen name for DB.\n"
t_adm_user_added = 'Allowed access to user - '
t_adm_user_blocked = "User blocked - "
t_adm_user_not_found = "No user by this ID "
t_adm_unexp_command = 'Unknown command, not enough arguments '
t_adm_unexp_id = 'only digits in Telegram ID '
BUT_REQ = '📤 Send HLR-request'
BUT_BAL = '📉 Check balance'
BUT_HELP = '📕 Typing hints'
BUT_HLR_COMMON_INFO = '❔About HLR'
BUT_GET_ID = '🆔 Get my ID'
BUT_ERROR_LOG = '📕 ERRORS'
BUT_RESPONSE_LOG = '📗 HISTORY'
BUT_USER_LIST = 'USER LIST'
SYMBOL_OFF = '✅📴'
SYMBOL_ON = '❎📲'
SYMBOL_BARRED = '🚫📞'
SYMBOL_UNKNOWN = '❔📞'
status_dict = {'active': '\n✅ on-line (active)',
'absent': '\n❎ off_line (absent)',
'failed': '\n📵 failed',
'None': '\n📵 empty result (maybe typing was incorrect)',
'barred': '\n📵 🚧 request was barred (🏃 maybe user was ported to another operator)',
'unknown': '\n📵 can\'t get status (the subscriber is unknown in the operator\'s network '
'(may no longer be serviced or never existed))',
'sent': '\n📵 💤 timed out waiting for a response. Retry...',
'money': '\n📵 no money'}