JoerJoers's avatar

Botman: Asking for both Images and Videos in Conversation

Instead of asking for Images or Videos one at a time, is there a way to ask for both?

// ...inside the conversation object...
public function askVideos()
{
    $this->askForVideos('Please upload a video.', function ($videos) {
        // $videos is an array containing all uploaded videos.
    });
}

public function askAudio()
{
    $this->askForAudio('Please upload an audio file.', function ($audio) {
        // $audio is an array containing all uploaded audio files.
    });
}
0 likes
1 reply
bobbybouwmann's avatar

You can probably use askForFiles instead, but there is no way to combine the two at the moment. You either need to extend the framework and add your own method or you can create a PR to the repo and add this feature: https://github.com/botman/botman

Please or to participate in this conversation.