public function sendInvoice(
        $chatId,
        $title,
        $description,
        $payload,
        $providerToken,
        $startParameter,
        $currency,
        $prices,
        $isFlexible = false,
        $photoUrl = null,
        $photoSize = null,
        $photoWidth = null,
        $photoHeight = null,
        $needName = false,
        $needPhoneNumber = false,
        $needEmail = false,
        $needShippingAddress = false,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $providerData = null,
        $sendPhoneNumberToProvider = false,
        $sendEmailToProvider = false
    ) {
        return Message::fromResponse($this->call('sendInvoice', [
            'chat_id' => $chatId,
            'title' => $title,
            'description' => $description,
            'payload' => $payload,
            'provider_token' => $providerToken,
            'start_parameter' => $startParameter,
            'currency' => $currency,
            'prices' => json_encode($prices),
            'is_flexible' => $isFlexible,
            'photo_url' => $photoUrl,
            'photo_size' => $photoSize,
            'photo_width' => $photoWidth,
            'photo_height' => $photoHeight,
            'need_name' => $needName,
            'need_phone_number' => $needPhoneNumber,
            'need_email' => $needEmail,
            'need_shipping_address' => $needShippingAddress,
            'reply_to_message_id' => $replyToMessageId,
            'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
            'provider_data' => $providerData,
            'send_phone_number_to_provider' => (bool)$sendPhoneNumberToProvider,
            'send_email_to_provider' => (bool)$sendEmailToProvider
        ]));
    }
public function sendInvoice(
        $chatId,
        $title,
        $description,
        $payload,
        $providerToken,
        $startParameter,
        $currency,
        $prices,
        $isFlexible = false,
        $photoUrl = null,
        $photoSize = null,
        $photoWidth = null,
        $photoHeight = null,
        $needName = false,
        $needPhoneNumber = false,
        $needEmail = false,
        $needShippingAddress = false,
        $replyToMessageId = null,
        $replyMarkup = null,
        $disableNotification = false,
        $providerData = null,
        $sendPhoneNumberToProvider = false,
        $sendEmailToProvider = false
    ) {
        return Message::fromResponse($this->call('sendInvoice', [
            'chat_id' => $chatId,
            'title' => $title,
            'description' => $description,
            'payload' => $payload,
            'provider_token' => $providerToken,
            'start_parameter' => $startParameter,
            'currency' => $currency,
            'prices' => json_encode($prices),
            'is_flexible' => $isFlexible,
            'photo_url' => $photoUrl,
            'photo_size' => $photoSize,
            'photo_width' => $photoWidth,
            'photo_height' => $photoHeight,
            'need_name' => $needName,
            'need_phone_number' => $needPhoneNumber,
            'need_email' => $needEmail,
            'need_shipping_address' => $needShippingAddress,
            'reply_to_message_id' => $replyToMessageId,
            'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
            'disable_notification' => (bool)$disableNotification,
            'provider_data' => $providerData,
            'send_phone_number_to_provider' => (bool)$sendPhoneNumberToProvider,
            'send_email_to_provider' => (bool)$sendEmailToProvider
        ]));
    }
public function sendInvoice ( $ chatId , $ title , $ description , $ payload , $ providerToken , $ startParameter , $ currency , $ prices , $ isFlexible = false , $ photoUrl = null , $ photoSize = null , $ photoWidth = null , $ photoHeight = null , $ needName = false , $ needPhoneNumber = false , $ needEmail = false , $ needShippingAddress = false , $ replyToMessageId = null , $ replyMarkup = null , $ disableNotification = false , $ providerData = null , $ sendPhoneNumberToProvider = false , $ sendEmailToProvider = false ) { return Message :: fromResponse ( $ this -> call ( 'sendInvoice' , [ 'chat_id' => $ chatId , 'title' => $ title , 'description' => $ description , 'payload' => $ payload , 'provider_token' => $ providerToken , 'start_parameter' => $ startParameter , 'currency' => $ currency , 'prices' => json_encode ( $ prices ) , 'is_flexible' => $ isFlexible , 'photo_url' => $ photoUrl , 'photo_size' => $ photoSize , 'photo_width' => $ photoWidth , 'photo_height' => $ photoHeight , 'need_name' => $ needName , 'need_phone_number' => $ needPhoneNumber , 'need_email' => $ needEmail , 'need_shipping_address' => $ needShippingAddress , 'reply_to_message_id' => $ replyToMessageId , 'reply_markup' => is_null ( $ replyMarkup ) ? $ replyMarkup : $ replyMarkup -> toJson ( ) , 'disable_notification' => ( bool ) $ disableNotification , 'provider_data' => $ providerData , 'send_phone_number_to_provider' => ( bool ) $ sendPhoneNumberToProvider , 'send_email_to_provider' => ( bool ) $ sendEmailToProvider ] ) ) ; }
Use this method to send invoices. On success, the sent Message is returned.

@param int|string $chatId
@param string $title
@param string $description
@param string $payload
@param string $providerToken
@param string $startParameter
@param string $currency
@param array $prices
@param string|null $photoUrl
@param int|null $photoSize
@param int|null $photoWidth
@param int|null $photoHeight
@param bool $needName
@param bool $needPhoneNumber
@param bool $needEmail
@param bool $needShippingAddress
@param bool $isFlexible
@param int|null $replyToMessageId
@param Types\ReplyKeyboardMarkup|Types\ReplyKeyboardHide|Types\ForceReply|
Types\ReplyKeyboardRemove|null $replyMarkup
@param bool $disableNotification
@param string|null $providerData
@param bool $sendPhoneNumberToProvider
@param bool $sendEmailToProvider

@return Message
Use this method to send invoices . On success the sent Message is returned .