forked from piterskiy/etuts-telegram-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-controller.php
31 lines (23 loc) · 1007 Bytes
/
main-controller.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
<?php
define("THANK_MESSAGE", 'با موفقیت انجام شد.');
//--------------------- Enum of permissions ----------------------
define("USER", 0);
define("AUTHOR", 1);
define("ADMIN", 2);
//--------------------- Enum of site recommended posts states ----
define("NOT_RESERVED", 0);
define("RESERVED", 1);
//--------------------- database class ---------------------------
require('database_class.php');
//--------------------- database functions -----------------------
require('handle_state.php');
//--------------------- telegram keyboard buttons functions ------
require('handle_keyboards.php');
//--------------------- telegram command functions ---------------
require('handle_commands.php');
//--------------------- telegram callback queries functions ------
require('handle_callbacks.php');
//--------------------- telegram bot api helper functions --------
require('telegram_helpers.php');
//--------------------- php helpers ------------------------------
require('utilities.php');