for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Commands\UserCommands;
use Longman\TelegramBot\Commands\UserCommand;
use Longman\TelegramBot\Entities\ServerResponse;
use Longman\TelegramBot\Request;
* Start command
class StartCommand extends UserCommand
{
* @var string
protected $name = 'start';
protected $description = 'Start command';
protected $usage = '/start';
protected $version = '1.2.0';
* Command execute method
* @return ServerResponse
public function execute(): ServerResponse
//$message = $this->getMessage();
//$chat_id = $message->getChat()->getId();
//$user_id = $message->getFrom()->getId();
return Request::emptyResponse();
}