Skip to content

Conversation

rezazand
Copy link

No description provided.

In the installCommand file, adding the message.photo configuration option was not handled properly due to extra space. This commit fixes the bug by removing the extra space.
In the ProcessInboundPhoto file, the downloadFile method was not properly accepting the file_id as the first input parameter, resulting in errors when attempting to download photos from the Telegram server. This commit fixes the bug.
// Download the largest image to the storage/app directory.
$photo = collect($update['message']['photo'])->last();
$bot->downloadFile($photo, storage_path('app/photos'));
$bot->downloadFile($photo['file_id'], storage_path('app/photos'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File ID will be retrieved automatically if it's a response object, this is not needed.

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

Successfully merging this pull request may close these issues.

2 participants