Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1048: Update code to reflect namespace changes #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions commands/ChannelpostCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\SystemCommands;
namespace PhpTelegramBot\Core\Commands\SystemCommands;

use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use Longman\TelegramBot\Request;
use PhpTelegramBot\Core\Commands\SystemCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;
use PhpTelegramBot\Core\Request;

/**
* Handle post sent from channel.
Expand Down
8 changes: 4 additions & 4 deletions commands/GenericmessageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\SystemCommands;
namespace PhpTelegramBot\Core\Commands\SystemCommands;

use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use PhpTelegramBot\Core\Commands\SystemCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;

/**
* Generic message command
Expand Down
10 changes: 5 additions & 5 deletions commands/HelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\UserCommands;
namespace PhpTelegramBot\Core\Commands\UserCommands;

use Longman\TelegramBot\Commands\Command;
use Longman\TelegramBot\Commands\UserCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use PhpTelegramBot\Core\Commands\Command;
use PhpTelegramBot\Core\Commands\UserCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;

/**
* User "/help" command
Expand Down
10 changes: 5 additions & 5 deletions commands/IdCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\UserCommands;
namespace PhpTelegramBot\Core\Commands\UserCommands;

use Longman\TelegramBot\Commands\UserCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use Longman\TelegramBot\Request;
use PhpTelegramBot\Core\Commands\UserCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;
use PhpTelegramBot\Core\Request;

/**
* Display user and chat information.
Expand Down
16 changes: 8 additions & 8 deletions commands/NewchatmembersCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\SystemCommands;

use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ChatMember;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Entities\User;
use Longman\TelegramBot\Exception\TelegramException;
use Longman\TelegramBot\Request;
namespace PhpTelegramBot\Core\Commands\SystemCommands;

use PhpTelegramBot\Core\Commands\SystemCommand;
use PhpTelegramBot\Core\Entities\ChatMember;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Entities\User;
use PhpTelegramBot\Core\Exception\TelegramException;
use PhpTelegramBot\Core\Request;
use TelegramBot\SupportBot\Helpers;

/**
Expand Down
6 changes: 3 additions & 3 deletions commands/RulesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\UserCommands;
namespace PhpTelegramBot\Core\Commands\UserCommands;

use Longman\TelegramBot\Commands\UserCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use PhpTelegramBot\Core\Commands\UserCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;

/**
* User "/rules" command
Expand Down
8 changes: 4 additions & 4 deletions commands/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

declare(strict_types=1);

namespace Longman\TelegramBot\Commands\SystemCommands;
namespace PhpTelegramBot\Core\Commands\SystemCommands;

use Longman\TelegramBot\Commands\SystemCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use PhpTelegramBot\Core\Commands\SystemCommand;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;

/**
* System "/start" command
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "telegram-bot/support-bot",
"name": "php-telegram-bot/support-bot",
"type": "project",
"description": "Friendly and helpful bot for t.me/PHP_Telegram_Support_Bot",
"keywords": ["telegram", "bot", "manager"],
Expand All @@ -21,7 +21,7 @@
"ext-json": "*",
"ext-pdo": "*",
"php-telegram-bot/telegram-bot-manager": "^1.5",
"longman/telegram-bot": "dev-master as 0.59",
"php-telegram-bot/core": "dev-master as 0.59",
"noplanman/service-webhook-handler": "^0.2",
"vlucas/phpdotenv": "^3.6",
"php-http/guzzle6-adapter": "^1.1",
Expand Down
4 changes: 2 additions & 2 deletions public/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

use Dotenv\Dotenv;
use Exception;
use Longman\TelegramBot\Exception\TelegramLogException;
use Longman\TelegramBot\TelegramLog;
use PhpTelegramBot\Core\Exception\TelegramLogException;
use PhpTelegramBot\Core\TelegramLog;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
Expand Down
10 changes: 5 additions & 5 deletions public/webhooks/github.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
use Github\Api\Issue;
use Github\Api\PullRequest;
use Github\Client;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Exception\TelegramException;
use Longman\TelegramBot\Request;
use Longman\TelegramBot\Telegram;
use Longman\TelegramBot\TelegramLog;
use PhpTelegramBot\Core\Entities\ServerResponse;
use PhpTelegramBot\Core\Exception\TelegramException;
use PhpTelegramBot\Core\Request;
use PhpTelegramBot\Core\Telegram;
use PhpTelegramBot\Core\TelegramLog;
use MatthiasMullie\Scrapbook\Adapters\MySQL;
use MatthiasMullie\Scrapbook\Psr6\Pool;
use Monolog\Formatter\LineFormatter;
Expand Down
6 changes: 3 additions & 3 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

namespace TelegramBot\SupportBot;

use Longman\TelegramBot\DB;
use Longman\TelegramBot\Request;
use Longman\TelegramBot\TelegramLog;
use PhpTelegramBot\Core\DB;
use PhpTelegramBot\Core\Request;
use PhpTelegramBot\Core\TelegramLog;

class Helpers
{
Expand Down