Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Send Picture with Caption - Update Client.php #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manufuentescr
Copy link

Send Picture with Caption

@fealXX
Copy link

fealXX commented Aug 15, 2016

One should probably check if a caption was specified!

I'd suggest to use
public function sendPicture($peer, $path, $caption = false)
and
return $this->exec('send_photo ' . $peer . ' ' . $formattedPath .(($caption !== false)?' ' . $caption:''));

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

Successfully merging this pull request may close these issues.

2 participants