File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1111declare (strict_types=1 );
12- namespace TelegramSDK \BotAPI \ Utils ;
12+ namespace TelegramSDK \Utils ;
1313
1414
1515class Translator{
Original file line number Diff line number Diff line change 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
99declare (strict_types=1 );
1010
11- namespace TelegramSDK \BotAPI \ Utils ;
11+ namespace TelegramSDK \Utils ;
1212
1313
1414/**
You can’t perform that action at this time.
0 commit comments