<?php
namespace App\Bot;
use Telegram\Bot\Actions;
use Telegram\Bot\Commands\Command;
class StartCommand extends Command
{
protected $name = "start";
protected $description = "Start Command to get you started";
public function handle($arguments)
{
$this->replyWithMessage(['text' => 'Hello!']);
}
}
The bot did not reply on /start and /help commands. When I try to send it POST message with Postman
http://mydomain.com/<bot-token>/webhook
Hi! I'm trying to make the bot to reply to commands. I think everything I did is right, but the bot do not respond.
Laravel 5.3 My codes:
web.php
VerifyCsrfToken.php
telegram.php
In folder app/Bot I have file StartCommand.php
The bot did not reply on /start and /help commands. When I try to send it POST message with Postman
http://mydomain.com/<bot-token>/webhook
I'm getting "ok" as reply.
Can you tell me where I'm wrong?
Thank you in advance!