Group Telegram service classes under Services/Social/Telegram
This commit is contained in:
parent
80b68088a0
commit
b9fa8be513
17 changed files with 18 additions and 16 deletions
|
|
@ -10,7 +10,7 @@
|
|||
use App\Features\SocialAccountLimit;
|
||||
use App\Models\SocialAccount;
|
||||
use App\Models\Workspace;
|
||||
use App\Services\Social\TelegramApi;
|
||||
use App\Services\Social\Telegram\TelegramApi;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Laravel\Pennant\Feature;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace App\Actions\SocialAccount;
|
||||
|
||||
use App\Services\Social\TelegramApi;
|
||||
use App\Services\Social\Telegram\TelegramApi;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use InvalidArgumentException;
|
||||
use RuntimeException;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
use App\Services\Social\InstagramAnalytics;
|
||||
use App\Services\Social\LinkedInPageAnalytics;
|
||||
use App\Services\Social\PinterestAnalytics;
|
||||
use App\Services\Social\TelegramAnalytics;
|
||||
use App\Services\Social\Telegram\TelegramAnalytics;
|
||||
use App\Services\Social\ThreadsAnalytics;
|
||||
use App\Services\Social\TikTokAnalytics;
|
||||
use App\Services\Social\XAnalytics;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Enums\SocialAccount\Platform as SocialPlatform;
|
||||
use App\Services\Social\TelegramConnectCode;
|
||||
use App\Services\Social\Telegram\TelegramConnectCode;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
use App\Actions\SocialAccount\StoreTelegramReactions;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Workspace;
|
||||
use App\Services\Social\TelegramConnectCode;
|
||||
use App\Services\Social\Telegram\TelegramConnectCode;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
use App\Services\Social\LinkedInPublisher;
|
||||
use App\Services\Social\MastodonPublisher;
|
||||
use App\Services\Social\PinterestPublisher;
|
||||
use App\Services\Social\TelegramPublisher;
|
||||
use App\Services\Social\Telegram\TelegramPublisher;
|
||||
use App\Services\Social\ThreadsPublisher;
|
||||
use App\Services\Social\TikTokPublisher;
|
||||
use App\Services\Social\XPublisher;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
use App\Services\Social\LinkedInPageAnalytics;
|
||||
use App\Services\Social\MastodonAnalytics;
|
||||
use App\Services\Social\PinterestAnalytics;
|
||||
use App\Services\Social\TelegramAnalytics;
|
||||
use App\Services\Social\Telegram\TelegramAnalytics;
|
||||
use App\Services\Social\ThreadsAnalytics;
|
||||
use App\Services\Social\XAnalytics;
|
||||
use App\Services\Social\YouTubeAnalytics;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
use App\Exceptions\PlatformUnavailableException;
|
||||
use App\Exceptions\TokenExpiredException;
|
||||
use App\Models\SocialAccount;
|
||||
use App\Services\Social\Telegram\TelegramApi;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Social;
|
||||
namespace App\Services\Social\Telegram;
|
||||
|
||||
use App\Models\PostPlatform;
|
||||
use App\Models\SocialAccount;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Social;
|
||||
namespace App\Services\Social\Telegram;
|
||||
|
||||
/**
|
||||
* Builds Telegram Bot API URLs from the configured token + host, so the
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Social;
|
||||
namespace App\Services\Social\Telegram;
|
||||
|
||||
use Carbon\CarbonInterface;
|
||||
use Illuminate\Contracts\Encryption\DecryptException;
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Social;
|
||||
namespace App\Services\Social\Telegram;
|
||||
|
||||
use App\DataTransferObjects\MediaItem;
|
||||
|
||||
|
|
@ -2,13 +2,14 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Social;
|
||||
namespace App\Services\Social\Telegram;
|
||||
|
||||
use App\DataTransferObjects\MediaItem;
|
||||
use App\Exceptions\Social\TelegramPublishException;
|
||||
use App\Models\PostPlatform;
|
||||
use App\Models\SocialAccount;
|
||||
use App\Services\Social\Concerns\HasSocialHttpClient;
|
||||
use App\Services\Social\ContentSanitizer;
|
||||
use Illuminate\Http\Client\Response;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
use App\Enums\SocialAccount\Platform;
|
||||
use App\Models\PostPlatform;
|
||||
use App\Models\SocialAccount;
|
||||
use App\Services\Social\TelegramAnalytics;
|
||||
use App\Services\Social\Telegram\TelegramAnalytics;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
beforeEach(function () {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
use App\Models\SocialAccount;
|
||||
use App\Models\User;
|
||||
use App\Models\Workspace;
|
||||
use App\Services\Social\TelegramPublisher;
|
||||
use App\Services\Social\Telegram\TelegramPublisher;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
beforeEach(function () {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
use App\Models\User;
|
||||
use App\Models\Workspace;
|
||||
use App\Services\Social\ConnectionVerifier;
|
||||
use App\Services\Social\TelegramConnectCode;
|
||||
use App\Services\Social\Telegram\TelegramConnectCode;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Services\Social\TelegramApi;
|
||||
use App\Services\Social\Telegram\TelegramApi;
|
||||
|
||||
beforeEach(function () {
|
||||
config([
|
||||
|
|
|
|||
Loading…
Reference in a new issue