src/Api.php
public function sendSticker(array $params)
    {
        if (is_file($params['sticker']) && (pathinfo($params['sticker'], PATHINFO_EXTENSION) !== 'webp')) {
            throw new TelegramSDKException('Invalid Sticker Provided. Supported Format: Webp');
        }

        $response = $this->uploadFile('sendSticker', $params);

        return new Message($response->getDecodedBody());
    }
public function sendSticker(array $params)
    {
        if (is_file($params['sticker']) && (pathinfo($params['sticker'], PATHINFO_EXTENSION) !== 'webp')) {
            throw new TelegramSDKException('Invalid Sticker Provided. Supported Format: Webp');
        }

        $response = $this->uploadFile('sendSticker', $params);

        return new Message($response->getDecodedBody());
    }
public function sendSticker ( array $ params ) { if ( is_file ( $ params [ 'sticker' ] ) && ( pathinfo ( $ params [ 'sticker' ] , PATHINFO_EXTENSION ) !== 'webp' ) ) { throw new TelegramSDKException ( 'Invalid Sticker Provided. Supported Format: Webp' ) ; } $ response = $ this -> uploadFile ( 'sendSticker' , $ params ) ; return new Message ( $ response -> getDecodedBody ( ) ) ; }
Send .webp stickers.

<code>
$params = [
'chat_id'              => '',
'sticker'              => '',
'disable_notification' => '',
'reply_to_message_id'  => '',
'reply_markup'         => '',
];
</code>

@link https://core.telegram.org/bots/api#sendsticker

@param array    $params

@var int|string $params ['chat_id']
@var string     $params ['sticker']
@var bool       $params ['disable_notification']
@var int        $params ['reply_to_message_id']
@var string     $params ['reply_markup']

@throws TelegramSDKException

@return Message
Send . webp stickers .