Skip to content

Commit

Permalink
fix: send photo to in app
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Oct 13, 2023
1 parent a8d6233 commit 4758642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Interfaces/AppInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function sendMessage(
/**
* Send a photo to telegram
*
* @param string $photo
* @param string $photo (path to photo)
* @param string $caption
*
* @return void
Expand Down
2 changes: 1 addition & 1 deletion src/Services/AppService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function sendPhoto(string $photo = '', string $caption = ''): void
}

$content = $this->createBaseContent();
$content['photo'] = $photo;
$content['photo'] = curl_file_create($photo);
$content['caption'] = $caption;

$this->telegram->sendPhoto($content);
Expand Down

0 comments on commit 4758642

Please sign in to comment.