Move UpdateEvent to Events and remove unused import

This commit is contained in:
netkas 2024-11-06 15:02:43 -05:00
parent 24fe2f2b91
commit 646c77c4ba
27 changed files with 4 additions and 28 deletions

View file

@ -13,13 +13,13 @@
use InvalidArgumentException; use InvalidArgumentException;
use ReflectionClass; use ReflectionClass;
use TgBotLib\Abstracts\Method; use TgBotLib\Abstracts\Method;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Classes\Logger; use TgBotLib\Classes\Logger;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Enums\Methods; use TgBotLib\Enums\Methods;
use TgBotLib\Enums\Types\ChatActionType; use TgBotLib\Enums\Types\ChatActionType;
use TgBotLib\Enums\Types\ParseMode; use TgBotLib\Enums\Types\ParseMode;
use TgBotLib\Events\CommandEvent; use TgBotLib\Events\CommandEvent;
use TgBotLib\Events\UpdateEvent;
use TgBotLib\Exceptions\TelegramException; use TgBotLib\Exceptions\TelegramException;
use TgBotLib\Objects\BotCommand; use TgBotLib\Objects\BotCommand;
use TgBotLib\Objects\BotCommandScope; use TgBotLib\Objects\BotCommandScope;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Enums; namespace TgBotLib\Enums;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Events\BusinessConnectionEvent; use TgBotLib\Events\BusinessConnectionEvent;
use TgBotLib\Events\BusinessMessageEvent; use TgBotLib\Events\BusinessMessageEvent;
use TgBotLib\Events\CallbackQueryEvent; use TgBotLib\Events\CallbackQueryEvent;
@ -21,12 +20,13 @@
use TgBotLib\Events\MessageReactionCountEvent; use TgBotLib\Events\MessageReactionCountEvent;
use TgBotLib\Events\MessageReactionEvent; use TgBotLib\Events\MessageReactionEvent;
use TgBotLib\Events\MyChatMemberUpdatedEvent; use TgBotLib\Events\MyChatMemberUpdatedEvent;
use TgBotLib\Events\PaidMediaPurchasedEvent;
use TgBotLib\Events\PollAnswerEvent; use TgBotLib\Events\PollAnswerEvent;
use TgBotLib\Events\PollEvent; use TgBotLib\Events\PollEvent;
use TgBotLib\Events\PaidMediaPurchasedEvent;
use TgBotLib\Events\PreCheckoutQueryEvent; use TgBotLib\Events\PreCheckoutQueryEvent;
use TgBotLib\Events\RemovedChatBoostEvent; use TgBotLib\Events\RemovedChatBoostEvent;
use TgBotLib\Events\ShippingQueryEvent; use TgBotLib\Events\ShippingQueryEvent;
use TgBotLib\Events\UpdateEvent;
use TgBotLib\Objects\Update; use TgBotLib\Objects\Update;
enum EventType : string enum EventType : string

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\BusinessConnection; use TgBotLib\Objects\BusinessConnection;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\CallbackQuery; use TgBotLib\Objects\CallbackQuery;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatBoostUpdated; use TgBotLib\Objects\ChatBoostUpdated;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatJoinRequest; use TgBotLib\Objects\ChatJoinRequest;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatMemberUpdated; use TgBotLib\Objects\ChatMemberUpdated;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Inline\ChosenInlineResult; use TgBotLib\Objects\Inline\ChosenInlineResult;

View file

@ -3,7 +3,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use OptsLib\Parse; use OptsLib\Parse;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\BusinessMessagesDeleted; use TgBotLib\Objects\BusinessMessagesDeleted;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Inline\InlineQuery; use TgBotLib\Objects\Inline\InlineQuery;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Message; use TgBotLib\Objects\Message;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\MessageReactionCountUpdated; use TgBotLib\Objects\MessageReactionCountUpdated;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\MessageReactionUpdated; use TgBotLib\Objects\MessageReactionUpdated;

View file

@ -3,7 +3,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatMemberUpdated; use TgBotLib\Objects\ChatMemberUpdated;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Payments\PaidMediaPurchased; use TgBotLib\Objects\Payments\PaidMediaPurchased;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\PollAnswer; use TgBotLib\Objects\PollAnswer;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Poll; use TgBotLib\Objects\Poll;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Payments\PreCheckoutQuery; use TgBotLib\Objects\Payments\PreCheckoutQuery;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatBoostRemoved; use TgBotLib\Objects\ChatBoostRemoved;

View file

@ -2,7 +2,6 @@
namespace TgBotLib\Events; namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;
use TgBotLib\Objects\Payments\ShippingQuery; use TgBotLib\Objects\Payments\ShippingQuery;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace TgBotLib\Abstracts; namespace TgBotLib\Events;
use TgBotLib\Bot; use TgBotLib\Bot;
use TgBotLib\Enums\EventType; use TgBotLib\Enums\EventType;