38 lines
No EOL
849 B
PHP
38 lines
No EOL
849 B
PHP
<?php
|
|
|
|
namespace TgBotLib\Methods;
|
|
|
|
use TgBotLib\Abstracts\Method;
|
|
use TgBotLib\Bot;
|
|
use TgBotLib\Enums\Methods;
|
|
|
|
class SetMyShortDescription extends Method
|
|
{
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function execute(Bot $bot, array $parameters = []): true
|
|
{
|
|
return (bool)self::executeCurl(self::buildPost($bot, Methods::SET_MY_SHORT_DESCRIPTION->value, $parameters));
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getRequiredParameters(): ?array
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getOptionalParameters(): ?array
|
|
{
|
|
return [
|
|
'short_description',
|
|
'language_code'
|
|
];
|
|
}
|
|
} |