nutgram/laravel

View on GitHub
src/Stubs/Conversation.stub

Summary

Maintainability
Test Coverage
<?php

namespace App\Telegram\{{ namespace }};

use SergiX44\Nutgram\Conversations\Conversation;
use SergiX44\Nutgram\Nutgram;

class {{ name }} extends Conversation
{
    public function start(Nutgram $bot)
    {
        $bot->sendMessage('This is the first step!');
        $this->next('secondStep');
    }

    public function secondStep(Nutgram $bot)
    {
        $bot->sendMessage('Bye!');
        $this->end();
    }
}