for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Api\Types;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;
class BotCommand extends BaseType implements TypeInterface
{
/**
* {@inheritdoc}
*
* @var array
*/
static protected $requiredParams = ['command', 'description'];
static protected $map = [
'command' => true,
'description' => true,
];
* Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
* @var string
protected $command;
* Description of the command, 3-256 characters.
protected $description;
* @return string
public function getCommand()
return $this->command;
}
* @param string $command
public function setCommand($command)
$this->command = $command;
public function getDescription()
return $this->description;
* @param string $description
public function setDescription($description)
$this->description = $description;