1 | <?php |
||
28 | class Bot extends Core\BaseBot |
||
29 | { |
||
30 | use Commands\MessageCommand, |
||
31 | Commands\MessageRegexCommand, |
||
32 | Commands\CallbackCommand, |
||
33 | Database\LongPolling, |
||
34 | Database\Handler, |
||
35 | Database\User, |
||
36 | Localization\File, |
||
37 | Localization\Language, |
||
38 | Localization\LocalizedString, |
||
39 | Utilities\BotState; |
||
40 | |||
41 | /** |
||
42 | * \addtogroup Bot Bot |
||
43 | * \brief Properties and methods to handle your Telegram's bot. |
||
44 | * \details Here are listed all the properties and methods that will help |
||
45 | * the developers during creation of basic bot's features. |
||
46 | * @{ |
||
47 | */ |
||
48 | |||
49 | /** \brief Store the inline keyboard */ |
||
50 | public $keyboard; |
||
51 | |||
52 | /** \brief PDO reference to manage database */ |
||
53 | public $pdo; |
||
54 | |||
55 | /** \brief Redis connection */ |
||
56 | public $redis; |
||
57 | |||
58 | /** |
||
59 | * \brief Construct an empty bot. |
||
60 | * \details Construct a bot that can handle updates, localization, database |
||
61 | * connection and handling and Redis. |
||
62 | * |
||
63 | * @param string $token Bot token given by BotFather. |
||
64 | */ |
||
65 | public function __construct(string $token) |
||
74 | |||
75 | /** \brief Destruct the bot. */ |
||
76 | public function __destruct() |
||
86 | |||
87 | /** @} */ |
||
88 | } |
||
89 |