Skip to content

Commit 1ecdfd2

Browse files
committed
Changed namespace for Utils functions
1 parent 9e9085d commit 1ecdfd2

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/02-translating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Assuming you have a file called `locales/en.json`:
2222

2323
```php
2424
<?php
25-
use TelegramSDK\BotAPI\Utils\Translator;
25+
use TelegramSDK\BotAPI\Translator;
2626

2727
$user = $updates->message->from;
2828

src/Telegram/Bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Bot{
3838
*/
3939
public function __construct(string $token, int $updatesMethod = self::NO_UPDATES){
4040
$this->token = $token;
41-
$this->isProduction = \TelegramSDK\BotAPI\Utils\isProduction();
41+
$this->isProduction = \TelegramSDK\Utils\isProduction();
4242
$this->updatesMethod = $updatesMethod;
4343

4444
if(!$this->isProduction){ // Assuming that you've tested the bot before pushing to production

src/Utils/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* This class provides a way to translate texts by replacing specific strings with their corresponding translations.
55
*
66
* @author Sebastiano Racca
7-
* @package TelegramSDK\BotAPI\Utils
7+
* @package TelegramSDK\Utils
88
* @see docs/02-translating.md
99
*/
1010

1111
declare(strict_types=1);
12-
namespace TelegramSDK\BotAPI\Utils;
12+
namespace TelegramSDK\Utils;
1313

1414

1515
class Translator{

src/Utils/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* This file provides a set of util functions for the library.
44
*
55
* @author Sebastiano Racca
6-
* @package TelegramSDK\BotAPI\Utils
6+
* @package TelegramSDK\Utils
77
*/
88

99
declare(strict_types=1);
1010

11-
namespace TelegramSDK\BotAPI\Utils;
11+
namespace TelegramSDK\Utils;
1212

1313

1414
/**

0 commit comments

Comments
 (0)