88 * file that was distributed with this source code.
99 */
1010
11- namespace NPM \TelegramBotManager ;
11+ namespace TelegramBot \TelegramBotManager ;
1212
1313use Allty \Utils \IpTools ;
1414use Longman \TelegramBot \Entities ;
1515use Longman \TelegramBot \Request ;
1616use Longman \TelegramBot \Telegram ;
1717use Longman \TelegramBot \TelegramLog ;
18- use NPM \TelegramBotManager \Exception \InvalidAccessException ;
19- use NPM \TelegramBotManager \Exception \InvalidWebhookException ;
18+ use TelegramBot \TelegramBotManager \Exception \InvalidAccessException ;
19+ use TelegramBot \TelegramBotManager \Exception \InvalidWebhookException ;
2020
2121class BotManager
2222{
@@ -36,12 +36,12 @@ class BotManager
3636 private $ telegram ;
3737
3838 /**
39- * @var \NPM \TelegramBotManager\Params Object that manages the parameters.
39+ * @var \TelegramBot \TelegramBotManager\Params Object that manages the parameters.
4040 */
4141 private $ params ;
4242
4343 /**
44- * @var \NPM \TelegramBotManager\Action Object that contains the current action.
44+ * @var \TelegramBot \TelegramBotManager\Action Object that contains the current action.
4545 */
4646 private $ action ;
4747
@@ -50,8 +50,8 @@ class BotManager
5050 *
5151 * @param array $params
5252 *
53- * @throws \NPM \TelegramBotManager\Exception\InvalidParamsException
54- * @throws \NPM \TelegramBotManager\Exception\InvalidActionException
53+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidParamsException
54+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidActionException
5555 * @throws \Longman\TelegramBot\Exception\TelegramException
5656 */
5757 public function __construct (array $ params )
@@ -92,7 +92,7 @@ public function getTelegram(): Telegram
9292 /**
9393 * Get the Params object.
9494 *
95- * @return \NPM \TelegramBotManager\Params
95+ * @return \TelegramBot \TelegramBotManager\Params
9696 */
9797 public function getParams (): Params
9898 {
@@ -102,7 +102,7 @@ public function getParams(): Params
102102 /**
103103 * Get the Action object.
104104 *
105- * @return \NPM \TelegramBotManager\Action
105+ * @return \TelegramBot \TelegramBotManager\Action
106106 */
107107 public function getAction (): Action
108108 {
@@ -112,10 +112,10 @@ public function getAction(): Action
112112 /**
113113 * Run this thing in all its glory!
114114 *
115- * @return \NPM \TelegramBotManager\BotManager
115+ * @return \TelegramBot \TelegramBotManager\BotManager
116116 * @throws \Longman\TelegramBot\Exception\TelegramException
117- * @throws \NPM \TelegramBotManager\Exception\InvalidAccessException
118- * @throws \NPM \TelegramBotManager\Exception\InvalidWebhookException
117+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidAccessException
118+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidWebhookException
119119 * @throws \Exception
120120 */
121121 public function run (): self
@@ -145,7 +145,7 @@ public function run(): self
145145 *
146146 * @param array $log_paths
147147 *
148- * @return \NPM \TelegramBotManager\BotManager
148+ * @return \TelegramBot \TelegramBotManager\BotManager
149149 * @throws \Exception
150150 */
151151 public function initLogging (array $ log_paths ): self
@@ -164,8 +164,8 @@ public function initLogging(array $log_paths): self
164164 *
165165 * @param bool $force Force validation, even on CLI.
166166 *
167- * @return \NPM \TelegramBotManager\BotManager
168- * @throws \NPM \TelegramBotManager\Exception\InvalidAccessException
167+ * @return \TelegramBot \TelegramBotManager\BotManager
168+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidAccessException
169169 */
170170 public function validateSecret (bool $ force = false ): self
171171 {
@@ -184,9 +184,9 @@ public function validateSecret(bool $force = false): self
184184 /**
185185 * Make sure the webhook is valid and perform the requested webhook operation.
186186 *
187- * @return \NPM \TelegramBotManager\BotManager
187+ * @return \TelegramBot \TelegramBotManager\BotManager
188188 * @throws \Longman\TelegramBot\Exception\TelegramException
189- * @throws \NPM \TelegramBotManager\Exception\InvalidWebhookException
189+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidWebhookException
190190 */
191191 public function validateAndSetWebhook (): self
192192 {
@@ -224,7 +224,7 @@ public function validateAndSetWebhook(): self
224224 *
225225 * @param string $output
226226 *
227- * @return \NPM \TelegramBotManager\BotManager
227+ * @return \TelegramBot \TelegramBotManager\BotManager
228228 */
229229 private function handleOutput (string $ output ): self
230230 {
@@ -240,7 +240,7 @@ private function handleOutput(string $output): self
240240 /**
241241 * Set any extra bot features that have been assigned on construction.
242242 *
243- * @return \NPM \TelegramBotManager\BotManager
243+ * @return \TelegramBot \TelegramBotManager\BotManager
244244 * @throws \Longman\TelegramBot\Exception\TelegramException
245245 */
246246 public function setBotExtras (): self
@@ -254,7 +254,7 @@ public function setBotExtras(): self
254254 /**
255255 * Set extra bot parameters for Telegram object.
256256 *
257- * @return \NPM \TelegramBotManager\BotManager
257+ * @return \TelegramBot \TelegramBotManager\BotManager
258258 * @throws \Longman\TelegramBot\Exception\TelegramException
259259 */
260260 protected function setBotExtrasTelegram (): self
@@ -293,7 +293,7 @@ protected function setBotExtrasTelegram(): self
293293 /**
294294 * Set extra bot parameters for Request class.
295295 *
296- * @return \NPM \TelegramBotManager\BotManager
296+ * @return \TelegramBot \TelegramBotManager\BotManager
297297 * @throws \Longman\TelegramBot\Exception\TelegramException
298298 */
299299 protected function setBotExtrasRequest (): self
@@ -322,8 +322,8 @@ protected function setBotExtrasRequest(): self
322322 /**
323323 * Handle the request, which calls either the Webhook or getUpdates method respectively.
324324 *
325- * @return \NPM \TelegramBotManager\BotManager
326- * @throws \NPM \TelegramBotManager\Exception\InvalidAccessException
325+ * @return \TelegramBot \TelegramBotManager\BotManager
326+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidAccessException
327327 * @throws \Longman\TelegramBot\Exception\TelegramException
328328 */
329329 public function handleRequest (): self
@@ -344,7 +344,7 @@ public function handleRequest(): self
344344 /**
345345 * Handle cron.
346346 *
347- * @return \NPM \TelegramBotManager\BotManager
347+ * @return \TelegramBot \TelegramBotManager\BotManager
348348 * @throws \Longman\TelegramBot\Exception\TelegramException
349349 */
350350 public function handleCron (): self
@@ -403,7 +403,7 @@ public function getLoopInterval(): int
403403 * @param int $loop_time_in_seconds
404404 * @param int $loop_interval_in_seconds
405405 *
406- * @return \NPM \TelegramBotManager\BotManager
406+ * @return \TelegramBot \TelegramBotManager\BotManager
407407 * @throws \Longman\TelegramBot\Exception\TelegramException
408408 */
409409 public function handleGetUpdatesLoop (int $ loop_time_in_seconds , int $ loop_interval_in_seconds = 2 ): self
@@ -426,7 +426,7 @@ public function handleGetUpdatesLoop(int $loop_time_in_seconds, int $loop_interv
426426 /**
427427 * Handle the updates using the getUpdates method.
428428 *
429- * @return \NPM \TelegramBotManager\BotManager
429+ * @return \TelegramBot \TelegramBotManager\BotManager
430430 * @throws \Longman\TelegramBot\Exception\TelegramException
431431 */
432432 public function handleGetUpdates (): self
@@ -473,9 +473,9 @@ public function handleGetUpdates(): self
473473 /**
474474 * Handle the updates using the Webhook method.
475475 *
476- * @return \NPM \TelegramBotManager\BotManager
476+ * @return \TelegramBot \TelegramBotManager\BotManager
477477 * @throws \Longman\TelegramBot\Exception\TelegramException
478- * @throws \NPM \TelegramBotManager\Exception\InvalidAccessException
478+ * @throws \TelegramBot \TelegramBotManager\Exception\InvalidAccessException
479479 */
480480 public function handleWebhook (): self
481481 {
0 commit comments