telegramBot::sendSticker PHP Method

sendSticker() public method

Send Sticker.
public sendSticker ( integer $chat_id, string $sticker, integer $reply_to_message_id = null, KeyboardMarkup $reply_markup = null ) : Array
$chat_id integer
$sticker string
$reply_to_message_id integer
$reply_markup KeyboardMarkup
return Array
    public function sendSticker($chat_id, $sticker, $reply_to_message_id = null, $reply_markup = null)
    {
        $data = compact('chat_id', 'sticker', 'reply_to_message_id', 'reply_markup');
        if (!is_dir($sticker) && filter_var($sticker, FILTER_VALIDATE_URL) === FALSE) {
            return $this->sendRequest('sendSticker', $data);
        }
        return $this->uploadFile('sendSticker', $data);
    }