Skip to content

Commit

Permalink
Add templateSend phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Chupocabra committed Jun 25, 2024
1 parent 4b5041b commit 33e816c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Bot/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,15 @@ public function templates(): array
return $adapter->getResponseList($response);
}

/**
* Send a template message
*
* @param string $templateId
* @param Model\Request\TemplateSendRequest $request Request parameters
*
* @return \RetailCrm\Mg\Bot\Model\ModelInterface
* @throws \Exception
*/
public function templateSend(string $templateId, Model\Request\TemplateSendRequest $request): ModelInterface
{
$response = $this->client->makeRequest(
Expand Down

0 comments on commit 33e816c

Please sign in to comment.