diff --git a/src/Api/Message.php b/src/Api/Message.php index f804a49..333c767 100644 --- a/src/Api/Message.php +++ b/src/Api/Message.php @@ -144,8 +144,6 @@ class Message extends HttpApi } $resource = fopen($path, 'r'); - } else { - throw new InvalidArgumentException('When using a file you need to specify parameter "fileContent" or "filePath"'); } return [