irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

Home Page:https://telegram-bot-sdk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bad Request: file must be non-empty

vladislav-ramirez opened this issue · comments

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