diff --git a/src/TgBotLib/Classes/Utilities.php b/src/TgBotLib/Classes/Utilities.php index 8055f2e..a72d815 100644 --- a/src/TgBotLib/Classes/Utilities.php +++ b/src/TgBotLib/Classes/Utilities.php @@ -5,9 +5,7 @@ use Exception; use LogLib\Log; - use TgBotLib\Enums\EventType; use TgBotLib\Objects\Currency; - use TgBotLib\Objects\Update; class Utilities { diff --git a/src/TgBotLib/Events/BusinessMessageEvent.php b/src/TgBotLib/Events/BusinessMessageEvent.php index d831aad..ac7b2e1 100644 --- a/src/TgBotLib/Events/BusinessMessageEvent.php +++ b/src/TgBotLib/Events/BusinessMessageEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Message; diff --git a/src/TgBotLib/Events/ChannelPostEvent.php b/src/TgBotLib/Events/ChannelPostEvent.php index 8f90aee..b1a2d89 100644 --- a/src/TgBotLib/Events/ChannelPostEvent.php +++ b/src/TgBotLib/Events/ChannelPostEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Message; diff --git a/src/TgBotLib/Events/ChatJoinRequestEvent.php b/src/TgBotLib/Events/ChatJoinRequestEvent.php index 034603c..a1a7987 100644 --- a/src/TgBotLib/Events/ChatJoinRequestEvent.php +++ b/src/TgBotLib/Events/ChatJoinRequestEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\ChatJoinRequest; diff --git a/src/TgBotLib/Events/ChatMemberUpdatedEvent.php b/src/TgBotLib/Events/ChatMemberUpdatedEvent.php index ad4f11e..f53066c 100644 --- a/src/TgBotLib/Events/ChatMemberUpdatedEvent.php +++ b/src/TgBotLib/Events/ChatMemberUpdatedEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\ChatMemberUpdated; diff --git a/src/TgBotLib/Events/ChosenInlineResultEvent.php b/src/TgBotLib/Events/ChosenInlineResultEvent.php index 2fcad26..f607fb7 100644 --- a/src/TgBotLib/Events/ChosenInlineResultEvent.php +++ b/src/TgBotLib/Events/ChosenInlineResultEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Inline\ChosenInlineResult; diff --git a/src/TgBotLib/Events/DeletedBusinessMessagesEvent.php b/src/TgBotLib/Events/DeletedBusinessMessagesEvent.php index 7e3b204..79938fc 100644 --- a/src/TgBotLib/Events/DeletedBusinessMessagesEvent.php +++ b/src/TgBotLib/Events/DeletedBusinessMessagesEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\BusinessMessagesDeleted; diff --git a/src/TgBotLib/Events/InlineQueryEvent.php b/src/TgBotLib/Events/InlineQueryEvent.php index 15dd0097..4fbc187 100644 --- a/src/TgBotLib/Events/InlineQueryEvent.php +++ b/src/TgBotLib/Events/InlineQueryEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Inline\InlineQuery; diff --git a/src/TgBotLib/Events/MessageReactionCountEvent.php b/src/TgBotLib/Events/MessageReactionCountEvent.php index 416b3ee..aada357 100644 --- a/src/TgBotLib/Events/MessageReactionCountEvent.php +++ b/src/TgBotLib/Events/MessageReactionCountEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\MessageReactionCountUpdated; diff --git a/src/TgBotLib/Events/MessageReactionEvent.php b/src/TgBotLib/Events/MessageReactionEvent.php index 3f7b84d..812426b 100644 --- a/src/TgBotLib/Events/MessageReactionEvent.php +++ b/src/TgBotLib/Events/MessageReactionEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\MessageReactionUpdated; diff --git a/src/TgBotLib/Events/PollAnswerEvent.php b/src/TgBotLib/Events/PollAnswerEvent.php index 4011622..393a4c1 100644 --- a/src/TgBotLib/Events/PollAnswerEvent.php +++ b/src/TgBotLib/Events/PollAnswerEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\PollAnswer; diff --git a/src/TgBotLib/Events/PollEvent.php b/src/TgBotLib/Events/PollEvent.php index 2526df6..f718a34 100644 --- a/src/TgBotLib/Events/PollEvent.php +++ b/src/TgBotLib/Events/PollEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Poll; diff --git a/src/TgBotLib/Events/PreCheckoutQueryEvent.php b/src/TgBotLib/Events/PreCheckoutQueryEvent.php index 8666be7..6ca2331 100644 --- a/src/TgBotLib/Events/PreCheckoutQueryEvent.php +++ b/src/TgBotLib/Events/PreCheckoutQueryEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Payments\PreCheckoutQuery; diff --git a/src/TgBotLib/Events/ShippingQueryEvent.php b/src/TgBotLib/Events/ShippingQueryEvent.php index c77d3f3..124b2a7 100644 --- a/src/TgBotLib/Events/ShippingQueryEvent.php +++ b/src/TgBotLib/Events/ShippingQueryEvent.php @@ -3,7 +3,6 @@ namespace TgBotLib\Events; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Bot; use TgBotLib\Enums\EventType; use TgBotLib\Objects\Payments\ShippingQuery; diff --git a/src/TgBotLib/Methods/CopyMessages.php b/src/TgBotLib/Methods/CopyMessages.php index 1c9bca2..fd47e89 100644 --- a/src/TgBotLib/Methods/CopyMessages.php +++ b/src/TgBotLib/Methods/CopyMessages.php @@ -5,12 +5,8 @@ use TgBotLib\Abstracts\Method; use TgBotLib\Bot; use TgBotLib\Enums\Methods; - use TgBotLib\Enums\Types\ParseMode; use TgBotLib\Exceptions\TelegramException; - use TgBotLib\Interfaces\ObjectTypeInterface; - use TgBotLib\Objects\MessageEntity; use TgBotLib\Objects\MessageId; - use TgBotLib\Objects\ReplyParameters; class CopyMessages extends Method { diff --git a/src/TgBotLib/Methods/SendChatAction.php b/src/TgBotLib/Methods/SendChatAction.php index 525a972..00ba841 100644 --- a/src/TgBotLib/Methods/SendChatAction.php +++ b/src/TgBotLib/Methods/SendChatAction.php @@ -6,7 +6,6 @@ use TgBotLib\Bot; use TgBotLib\Enums\Methods; use TgBotLib\Enums\Types\ChatActionType; - use TgBotLib\Objects\Message; class SendChatAction extends Method { diff --git a/src/TgBotLib/Methods/SendMessage.php b/src/TgBotLib/Methods/SendMessage.php index c95cee6..7537bac 100644 --- a/src/TgBotLib/Methods/SendMessage.php +++ b/src/TgBotLib/Methods/SendMessage.php @@ -2,7 +2,6 @@ namespace TgBotLib\Methods; - use InvalidArgumentException; use TgBotLib\Abstracts\Method; use TgBotLib\Bot; use TgBotLib\Enums\Methods; diff --git a/src/TgBotLib/Methods/SetWebhook.php b/src/TgBotLib/Methods/SetWebhook.php index 2b9c7f7..3ad4ea3 100644 --- a/src/TgBotLib/Methods/SetWebhook.php +++ b/src/TgBotLib/Methods/SetWebhook.php @@ -5,12 +5,6 @@ use TgBotLib\Abstracts\Method; use TgBotLib\Bot; use TgBotLib\Enums\Methods; - use TgBotLib\Enums\Types\ParseMode; - use TgBotLib\Exceptions\TelegramException; - use TgBotLib\Interfaces\ObjectTypeInterface; - use TgBotLib\Objects\Message; - use TgBotLib\Objects\MessageEntity; - use TgBotLib\Objects\ReplyParameters; class SetWebhook extends Method { diff --git a/src/TgBotLib/PollingBot.php b/src/TgBotLib/PollingBot.php index 52f9c81..afbb782 100644 --- a/src/TgBotLib/PollingBot.php +++ b/src/TgBotLib/PollingBot.php @@ -3,7 +3,6 @@ namespace TgBotLib; use TgBotLib\Abstracts\UpdateEvent; - use TgBotLib\Classes\Utilities; use TgBotLib\Enums\EventType; /** diff --git a/tests/TgBotLib/Methods/CopyMessageTest.php b/tests/TgBotLib/Methods/CopyMessageTest.php index 0598b41..551ba44 100644 --- a/tests/TgBotLib/Methods/CopyMessageTest.php +++ b/tests/TgBotLib/Methods/CopyMessageTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; use TgBotLib\Objects\MessageId; diff --git a/tests/TgBotLib/Methods/CopyMessagesTest.php b/tests/TgBotLib/Methods/CopyMessagesTest.php index 48d0dab..02a2b18 100644 --- a/tests/TgBotLib/Methods/CopyMessagesTest.php +++ b/tests/TgBotLib/Methods/CopyMessagesTest.php @@ -4,9 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; -use TgBotLib\Objects\Message; use TgBotLib\Objects\MessageId; class CopyMessagesTest extends TestCase diff --git a/tests/TgBotLib/Methods/ForwardMessageTest.php b/tests/TgBotLib/Methods/ForwardMessageTest.php index 06657f6..28a4bcf 100644 --- a/tests/TgBotLib/Methods/ForwardMessageTest.php +++ b/tests/TgBotLib/Methods/ForwardMessageTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class ForwardMessageTest extends TestCase diff --git a/tests/TgBotLib/Methods/ForwardMessagesTest.php b/tests/TgBotLib/Methods/ForwardMessagesTest.php index 7498cd3..aaf8521 100644 --- a/tests/TgBotLib/Methods/ForwardMessagesTest.php +++ b/tests/TgBotLib/Methods/ForwardMessagesTest.php @@ -4,9 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; -use TgBotLib\Objects\Message; use TgBotLib\Objects\MessageId; class ForwardMessagesTest extends TestCase diff --git a/tests/TgBotLib/Methods/GetUpdatesTest.php b/tests/TgBotLib/Methods/GetUpdatesTest.php index 4a58b8a..65a4817 100644 --- a/tests/TgBotLib/Methods/GetUpdatesTest.php +++ b/tests/TgBotLib/Methods/GetUpdatesTest.php @@ -4,10 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; -use TgBotLib\Objects\Message; -use TgBotLib\Objects\MessageId; use TgBotLib\Objects\Update; class GetUpdatesTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendAnimationTest.php b/tests/TgBotLib/Methods/SendAnimationTest.php index dc5e7d2..7965827 100644 --- a/tests/TgBotLib/Methods/SendAnimationTest.php +++ b/tests/TgBotLib/Methods/SendAnimationTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class SendAnimationTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendAudioTest.php b/tests/TgBotLib/Methods/SendAudioTest.php index 9a78736..a97cc40 100644 --- a/tests/TgBotLib/Methods/SendAudioTest.php +++ b/tests/TgBotLib/Methods/SendAudioTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class SendAudioTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendChatActionTest.php b/tests/TgBotLib/Methods/SendChatActionTest.php index ba8385c..f51f323 100644 --- a/tests/TgBotLib/Methods/SendChatActionTest.php +++ b/tests/TgBotLib/Methods/SendChatActionTest.php @@ -5,8 +5,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; use TgBotLib\Enums\Types\ChatActionType; -use TgBotLib\Exceptions\TelegramException; -use TgBotLib\Objects\Message; class SendChatActionTest extends TestCase { diff --git a/tests/TgBotLib/Methods/SendDiceTest.php b/tests/TgBotLib/Methods/SendDiceTest.php index a65daad..2d594cd 100644 --- a/tests/TgBotLib/Methods/SendDiceTest.php +++ b/tests/TgBotLib/Methods/SendDiceTest.php @@ -4,7 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Exceptions\TelegramException; use TgBotLib\Objects\Message; class SendDiceTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendDocumentTest.php b/tests/TgBotLib/Methods/SendDocumentTest.php index a36703a..34a182d 100644 --- a/tests/TgBotLib/Methods/SendDocumentTest.php +++ b/tests/TgBotLib/Methods/SendDocumentTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class SendDocumentTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendMediaGroupTest.php b/tests/TgBotLib/Methods/SendMediaGroupTest.php index cf28dba..70e46a8 100644 --- a/tests/TgBotLib/Methods/SendMediaGroupTest.php +++ b/tests/TgBotLib/Methods/SendMediaGroupTest.php @@ -4,9 +4,7 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; use TgBotLib\Objects\InputMedia\InputMediaPhoto; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class SendMediaGroupTest extends TestCase diff --git a/tests/TgBotLib/Methods/SendPhotoTest.php b/tests/TgBotLib/Methods/SendPhotoTest.php index 2e942b3..0134716 100644 --- a/tests/TgBotLib/Methods/SendPhotoTest.php +++ b/tests/TgBotLib/Methods/SendPhotoTest.php @@ -4,8 +4,6 @@ namespace TgBotLib\Methods; use PHPUnit\Framework\TestCase; use TgBotLib\Bot; -use TgBotLib\Enums\Types\ParseMode; -use TgBotLib\Objects\LinkPreviewOptions; use TgBotLib\Objects\Message; class SendPhotoTest extends TestCase