Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending the document without a file link #200

Open
faenir opened this issue Aug 14, 2024 · 0 comments
Open

Sending the document without a file link #200

faenir opened this issue Aug 14, 2024 · 0 comments

Comments

@faenir
Copy link

faenir commented Aug 14, 2024

Could you please tell me if it’s possible to send a document without using a file link? I want to specify the file’s content as text.

Like this:

TelegramFile::create()->document('File content as string', 'filename.txt');

I used this method in Laravel 5.8 + laravel-notification-channels 0.1.1, and it worked perfectly. The file "filename.txt" with the content "File content as string" would be sent to Telegram.

Now I’ve updated Laravel to version 10.x and laravel-notification-channels to version 4.x, and this method has stopped working.

I see an error:

Telegram responded with an error 400 - Bad Request: invalid file HTTP URL specified: Wrong port number specified in the URL at /var/www/vendor/laravel-notification-channels/telegram/src/Exceptions/CouldNotSendNotification.php:31)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant