Larabros\Elogram\Repositories\CommentsRepository::create PHP Method

create() public method

- The total length of the comment cannot exceed 300 characters. - The comment cannot contain more than 4 hashtags. - The comment cannot contain more than 1 URL. - The comment cannot consist of all capital letters.
public create ( integer $mediaId, string $text ) : Response
$mediaId integer The ID of the media object
$text string Text to post as a comment on the media object
return Larabros\Elogram\Http\Response
    public function create($mediaId, $text)
    {
        $params = ['form_params' => ['text' => $text]];
        return $this->client->request('POST', "media/{$mediaId}/comments", $params);
    }
CommentsRepository