Skip to content

Commit

Permalink
Add missing method (botman#1005)
Browse files Browse the repository at this point in the history
* Add missing method

* Code formatting
  • Loading branch information
isbkch authored and mpociot committed May 14, 2019
1 parent ac9ecf7 commit b1a8885
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Messages/Conversations/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ public function askForImages($question, $next, $repeat = null, $additionalParame
return $this->ask($question, $next, $additionalParameters);
}

/**
* @param string|\BotMan\BotMan\Messages\Outgoing\Question $question
* @param array|Closure $next
* @param array|Closure $repeat
* @param array $additionalParameters
* @return $this
*/
public function askForFiles($question, $next, $repeat = null, $additionalParameters = [])
{
$additionalParameters['__getter'] = 'getFiles';
$additionalParameters['__pattern'] = File::PATTERN;
$additionalParameters['__repeat'] = ! is_null($repeat) ? $this->bot->serializeClosure($repeat) : $repeat;

return $this->ask($question, $next, $additionalParameters);
}

/**
* @param string|\BotMan\BotMan\Messages\Outgoing\Question $question
* @param array|Closure $next
Expand Down

0 comments on commit b1a8885

Please sign in to comment.