Page MenuHomePhabricator (Chris)

StartCommand.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

StartCommand.php

<?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 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';
/**
* @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();
//$chat_id = $message->getChat()->getId();
//$user_id = $message->getFrom()->getId();
return Request::emptyResponse();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 11:41 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
139385
Default Alt Text
StartCommand.php (1 KB)

Event Timeline