for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace unreal4u\TelegramAPI\Telegram\Methods;
use Psr\Log\LoggerInterface;
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
use unreal4u\TelegramAPI\InternalFunctionality\TelegramRawData;
use unreal4u\TelegramAPI\Telegram\Types\StickerSet;
/**
* Use this method to get a sticker set. On success, a StickerSet object is returned.
*
* Objects defined as-is july 2017
* @see https://core.telegram.org/bots/api#getstickerset
*/
class GetStickerSet extends TelegramMethods
{
* Short name of the sticker set that is used in t.me/addstickers/ URLs (e.g., animals)
* @var string
public $name = '';
public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes
return new StickerSet($data->getResult(), $logger);
}
public function getMandatoryFields(): array
return [
'name',
];