-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_3j.php
65 lines (56 loc) · 1.59 KB
/
config_3j.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
<?php
//comment below line for better debbuging
//error_reporting(0);
define('DEBUG_MODE', true);
//bots id
define('SELFID', 11111111);
/**
* Telegram bot token should be replaced with your own bots unique token which
* you can get from bot father.
*
* @link to botfather http://t.me/botfather
*/
$BOT_TOKEN= '';
/**
* Set your unique chat id if you want to receive logs/notification from the bot
* when something odd happens or when a new user starts your bot.
*
* You can get your chat id form [@forwardinfobot](http://t.me/forwardinfobot")
*/
define('ADMINID',11111111);
/**
* Database configuration
*/
/**
* set your database server name if you are unaware about your db server name then
* you can get it from your hosting provider.
*/
define('DBSERVER', 'localhost');
/**
* set your database user name you can get it from your hosting provider.
*/
define('DBUSERNAME', 'root');
/**
* set your database password you can get it from your hosting provider.
*/
define('DBPASSWORD', '');
/**
* set your database name.
*/
define('DBNAME', '');
define('TGUSER_TABLE_3J','CREATE TABLE TGUSER_TABLE_3J(
ID INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY,
CHAT_ID DOUBLE UNIQUE NOT NULL,
USERNAME varchar(128),
FIRST_NAME varchar(128),
MESSAGE_ID int,
J_DATE datetime
)CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;');
define('TGDATA_TABLE_3J','CREATE TABLE TGDATA_TABLE_3J(
DID INTEGER AUTO_INCREMENT PRIMARY KEY,
UID VARCHAR(20) not null,
DATA TEXT not null,
DATE INTEGER not null
)CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;');
define('USER_TABLE_NAME','TGUSER_TABLE_3J');
define('USERID_COL_NAME','CHATID');