Add SetMyShortDescription method

This commit is contained in:
netkas 2024-11-13 15:44:36 -05:00
parent d45bf4f261
commit e1f6b63bb7
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,38 @@
<?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'
];
}
}