diff --git a/src/TgBotLib/Abstracts/UpdateEvent.php b/src/TgBotLib/Abstracts/UpdateEvent.php new file mode 100644 index 0000000..3b938ae --- /dev/null +++ b/src/TgBotLib/Abstracts/UpdateEvent.php @@ -0,0 +1,34 @@ +update = $update; + } + + /** + * Retrieves the event type. + * @return EventType The event type of the current instance. + */ + public static function getEventType(): EventType + { + return EventType::UPDATE_EVENT; + } + + public abstract function handle(Bot $bot): void; + } \ No newline at end of file