1 | <?php |
||
38 | class Bot extends BasicBot |
||
39 | { |
||
40 | use Getter, |
||
41 | LongPolling; |
||
42 | |||
43 | /** |
||
44 | * \addtogroup Bot Bot |
||
45 | * \brief Properties and methods to handle your Telegrams bot. |
||
46 | * \details Here're listed all the properties and methods that offers facilities for bot's basic features. |
||
47 | * @{ |
||
48 | */ |
||
49 | |||
50 | /** \brief Store the inline keyboard. */ |
||
51 | public $keyboard; |
||
52 | |||
53 | /** \brief Database handler object. */ |
||
54 | public $database; |
||
55 | |||
56 | /** \brief Redis connection. */ |
||
57 | public $redis; |
||
58 | |||
59 | /** \brief Localization handler object. */ |
||
60 | public $local; |
||
61 | |||
62 | /** \brief Status handler object. */ |
||
63 | public $status; |
||
64 | |||
65 | /** |
||
66 | * \brief Construct an empty bot. |
||
67 | * \details Construct a complete Telegram bot which can use localization, database and more other. |
||
68 | * |
||
69 | * @param string $token Bot token, you can request one through **BotFather** on Telegram. |
||
70 | */ |
||
71 | 1 | public function __construct(string $token) |
|
80 | |||
81 | /** @} */ |
||
82 | } |
||
83 |