irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3k stars 662 forks source link

Bad Request: file must be non-empty #1102

Closed vladislav-ramirez closed 10 months ago

vladislav-ramirez commented 10 months ago

PHP version

PHP 8.2.12

irazasyed/telegram-bot-sdk version

versions : * v3.13.0

Laravel version (if any)

No response

Code To Reproduce the bug

When i try ReplyWithDocument in command

$this->replyWithDocument([
  'document' => \Telegram\Bot\FileUpload\InputFile::create('test/file1.docx')
]);

i get Telegram\Bot\Exceptions\TelegramResponseException: Bad Request: file must be non-empty

Error stacktrace (if any)

No response