-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
52 lines (41 loc) · 1015 Bytes
/
config.php
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
<?php
namespace TeleBot\Config;
/**
* @var array $config configuration properties
*/
return [
/**
* @var string $domain application domain name
*/
'domain' => getenv('APP_DOMAIN', true),
/**
* @param string $token property holding bot token
*/
'token' => getenv('TG_BOT_TOKEN', true),
/**
* @var string $ip property holding source IP
*/
'ip' => getenv('TG_SOURCE_IP', true),
/**
* @var array $routes allowed routes
*/
'routes' => [],
/**
* @var array $authorization property holding request signature
*/
'signature' => getenv('TG_BOT_SIGNATURE', true),
/**
* @var array $users allowed users
*/
'users' => [
/**
* whitelisted users. Leave empty to accept all
*/
'whitelist' => [],
/**
* blacklisted users. Leave empty to accept all
* this will be overlooked if *whitelist* is not empty
*/
'blacklist' => [],
],
];