diff --git a/src/Telegram/InputMessageContent.php b/src/Telegram/InputMessageContent.php index 62700c6..1e46d61 100644 --- a/src/Telegram/InputMessageContent.php +++ b/src/Telegram/InputMessageContent.php @@ -6,18 +6,11 @@ namespace Tii\Telepath\Telegram; -use Tii\Telepath\Types\Factory; use Tii\Telepath\Types\Type; /** * This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types: */ -abstract class InputMessageContent extends Type implements Factory +abstract class InputMessageContent extends Type { - public static function factory(array $data): self - { - return match($data[null]) { - '' => new InputInvoiceMessageContent($data), - }; - } } diff --git a/telepathy b/telepathy index 487cb58..dca7f87 100755 Binary files a/telepathy and b/telepathy differ