-
Notifications
You must be signed in to change notification settings - Fork 5
/
Config-example.php
68 lines (58 loc) · 1.24 KB
/
Config-example.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
namespace OxMohsen\TgBot;
class Config
{
/**
* your bot token (get it from botfather).
*
* @var string
*/
public const BOT_TOKEN = 'YOUR_BOT_TOKEN';
/**
* your bot username `without @`.
*
* @var string
*/
public const BOT_USERNAME = 'YOUR_BOT_USERNAME';
/**
* Secret key required to access the webhook.
*
* @var string
*/
public const SECRET = 'SUPPER_SECRET_TEXT';
/**
* the url of webhook file.
*
* @var string
*/
public const WEBHOOK_URL = 'https://your-domain/path/to/TgBot.php';
/**
* the url of web app file.
*
* @var string
*/
public const WEBAPP_URL = 'https://your-domain/path/to/web/index.html';
/**
* all paths for your custom commands.
*
* @var array
*/
public const COMMAND_PATH = [__DIR__ . '/MyCommands'];
/**
* all IDs of admin users.
*
* @var array
*/
public const ADMINS = [123456789, 987654321];
/**
* your MySQL database credentials.
*
* @var array
*/
public const SQL_DB = [
'host' => '127.0.0.1',
'user' => 'root',
'password' => '',
'database' => 'TgFontWebBot',
];
}