forked from duhow/Telegram-PHP-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
38 lines (31 loc) · 1.28 KB
/
config.php
File metadata and controls
38 lines (31 loc) · 1.28 KB
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
<?php
$config['telegram'] = [
'id' => 0,
'key' => 'YOUR API KEY',
'username' => 'MyNameBot',
'first_name' => 'James Bot'
];
$config['creator'] = 0; // Telegram User ID of bot owner
$config['language'] = 'en'; // Default language
$config['convert_emoji'] = TRUE; // Auto convert text to emoji.
$config['mysql'] = [
'host' => 'localhost',
'username' => 'mysql',
'password' => '',
'db' => 'telegram',
'port' => 3306,
'prefix' => NULL,
'charset' => NULL
];
$config['mysql']['enable'] = TRUE; // Enable MySQL Class / Service.
$config['tracking'] = FALSE; // Tracking system to log and track bot/user actions.
// $config['tracking'] = ['Botan' => 'API KEY'];
// $config['tracking'] = ['GA' => 'UA-11111111-1'];
$config['log'] = FALSE; // Log messages to file.
$config['log_time'] = FALSE; // Log amount of time processing the message.
$config['repeat_updateid'] = 3; // Amount of same ID messages you can receive before skipping.
$config['ignore_older_than'] = 300; // If message is older than X seconds, ignore.
$config['safe_connect'] = TRUE; // Only accept connections from Telegram (or custom servers if specified).
$config['cache_memcached'] = FALSE; // Use Memcached PHP functions.
// $config['cache_memcached'] = [['127.0.0.1', 11211, 0]];
?>