Файл: upload/core/vendor/longman/telegram-bot/src/Commands/UserCommands/StartCommand.php
Строк: 47
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LongmanTelegramBotCommandsUserCommands;
use LongmanTelegramBotCommandsUserCommand;
use LongmanTelegramBotEntitiesServerResponse;
use LongmanTelegramBotRequest;
/**
* Start command
*/
class StartCommand extends UserCommand
{
/**
* @var string
*/
protected $name = 'start';
/**
* @var string
*/
protected $description = 'Start command';
/**
* @var string
*/
protected $usage = '/start';
/**
* @var string
*/
protected $version = '1.2.0';
/**
* Command execute method
*
* @return ServerResponse
*/
public function execute(): ServerResponse
{
//$message = $this->getMessage() ?: $this->getEditedMessage() ?: $this->getChannelPost() ?: $this->getEditedChannelPost();
//$chat_id = $message->getChat()->getId();
//$user_id = $message->getFrom()->getId();
return Request::emptyResponse();
}
}