final case class SendInvoice(chatId: Long, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: Currency, prices: Seq[LabeledPrice], providerData: Option[String] = None, photoUrl: Option[String] = None, photoSize: Option[Int] = None, photoWidth: Option[Int] = None, photoHeight: Option[Int] = None, needName: Option[Boolean] = None, needPhoneNumber: Option[Boolean] = None, needEmail: Option[Boolean] = None, needShippingAddress: Option[Boolean] = None, isFlexible: Option[Boolean] = None, disableNotification: Option[Boolean] = None, replyToMessageId: Option[Int] = None, replyMarkup: Option[ReplyMarkup] = None) extends Product with Serializable

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

chatId

Unique identifier for the target private chat

title

Product name

description

Product description

payload

Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.

providerToken

Payments provider token, obtained via Botfather

startParameter

Unique deep-linking parameter that can be used to generate this invoice when used as a start parameter

currency

Three-letter ISO 4217 currency code, see more on currencies

prices

Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)

providerData

JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.

photoUrl

URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.

photoSize

Photo size

photoWidth

Photo width

photoHeight

Photo height

needName

Pass True, if you require the user's full name to complete the order

needPhoneNumber

Pass True, if you require the user's phone number to complete the order

needEmail

Pass True, if you require the user's email to complete the order

needShippingAddress

Pass True, if you require the user's shipping address to complete the order

isFlexible

Pass True, if the final price depends on the shipping method

disableNotification

Sends the message silently. Users will receive a notification with no sound.

replyToMessageId

If the message is a reply, ID of the original message

replyMarkup

A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SendInvoice
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SendInvoice(chatId: Long, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: Currency, prices: Seq[LabeledPrice], providerData: Option[String] = None, photoUrl: Option[String] = None, photoSize: Option[Int] = None, photoWidth: Option[Int] = None, photoHeight: Option[Int] = None, needName: Option[Boolean] = None, needPhoneNumber: Option[Boolean] = None, needEmail: Option[Boolean] = None, needShippingAddress: Option[Boolean] = None, isFlexible: Option[Boolean] = None, disableNotification: Option[Boolean] = None, replyToMessageId: Option[Int] = None, replyMarkup: Option[ReplyMarkup] = None)

    chatId

    Unique identifier for the target private chat

    title

    Product name

    description

    Product description

    payload

    Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.

    providerToken

    Payments provider token, obtained via Botfather

    startParameter

    Unique deep-linking parameter that can be used to generate this invoice when used as a start parameter

    currency

    Three-letter ISO 4217 currency code, see more on currencies

    prices

    Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)

    providerData

    JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.

    photoUrl

    URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.

    photoSize

    Photo size

    photoWidth

    Photo width

    photoHeight

    Photo height

    needName

    Pass True, if you require the user's full name to complete the order

    needPhoneNumber

    Pass True, if you require the user's phone number to complete the order

    needEmail

    Pass True, if you require the user's email to complete the order

    needShippingAddress

    Pass True, if you require the user's shipping address to complete the order

    isFlexible

    Pass True, if the final price depends on the shipping method

    disableNotification

    Sends the message silently. Users will receive a notification with no sound.

    replyToMessageId

    If the message is a reply, ID of the original message

    replyMarkup

    A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val chatId: Long
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val currency: Currency
  8. val description: String
  9. val disableNotification: Option[Boolean]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val isFlexible: Option[Boolean]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. val needEmail: Option[Boolean]
  17. val needName: Option[Boolean]
  18. val needPhoneNumber: Option[Boolean]
  19. val needShippingAddress: Option[Boolean]
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val payload: String
  23. val photoHeight: Option[Int]
  24. val photoSize: Option[Int]
  25. val photoUrl: Option[String]
  26. val photoWidth: Option[Int]
  27. val prices: Seq[LabeledPrice]
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. val providerData: Option[String]
  30. val providerToken: String
  31. val replyMarkup: Option[ReplyMarkup]
  32. val replyToMessageId: Option[Int]
  33. val startParameter: String
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. val title: String
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped