Class

com.bot4s.telegram.methods

SendInvoice

Related Doc: package methods

Permalink

case class SendInvoice(chatId: Long, title: String, description: String, payload: String, providerToken: String, startParameter: String, currency: Currency, prices: Array[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[Int] = None, replyToMessageId: Option[Long] = None, replyMarkup: Option[InlineKeyboardMarkup] = None) extends JsonRequest[Message] with Product with Serializable

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

chatId

Integer Yes Unique identifier for the target private chat

title

String Yes Product name

description

String Yes Product description

payload

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

providerToken

String Yes Payments provider token, obtained via Botfather

startParameter

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

currency

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

prices

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

providerData

String Optional 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

String Optional 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

Integer Optional Photo size

photoWidth

Integer Optional Photo width

photoHeight

Integer Optional Photo height

needName

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

needPhoneNumber

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

needEmail

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

needShippingAddress

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

isFlexible

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

disableNotification

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

replyToMessageId

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

replyMarkup

InlineKeyboardMarkup Optional 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, Serializable, Product, Equals, JsonRequest[Message], Request[Message], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SendInvoice
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. JsonRequest
  7. Request
  8. AnyRef
  9. 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: Array[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[Int] = None, replyToMessageId: Option[Long] = None, replyMarkup: Option[InlineKeyboardMarkup] = None)

    Permalink

    chatId

    Integer Yes Unique identifier for the target private chat

    title

    String Yes Product name

    description

    String Yes Product description

    payload

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

    providerToken

    String Yes Payments provider token, obtained via Botfather

    startParameter

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

    currency

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

    prices

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

    providerData

    String Optional 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

    String Optional 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

    Integer Optional Photo size

    photoWidth

    Integer Optional Photo width

    photoHeight

    Integer Optional Photo height

    needName

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

    needPhoneNumber

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

    needEmail

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

    needShippingAddress

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

    isFlexible

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

    disableNotification

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

    replyToMessageId

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

    replyMarkup

    InlineKeyboardMarkup Optional 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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val chatId: Long

    Permalink

    Integer Yes Unique identifier for the target private chat

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val currency: Currency

    Permalink

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

  8. val description: String

    Permalink

    String Yes Product description

  9. val disableNotification: Option[Int]

    Permalink

    Boolean Optional Sends the message silently.

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

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val isFlexible: Option[Boolean]

    Permalink

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

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def methodName: String

    Permalink

    Extract request URL from class name.

    Extract request URL from class name.

    Definition Classes
    Request
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. val needEmail: Option[Boolean]

    Permalink

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

  18. val needName: Option[Boolean]

    Permalink

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

  19. val needPhoneNumber: Option[Boolean]

    Permalink

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

  20. val needShippingAddress: Option[Boolean]

    Permalink

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

  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val payload: String

    Permalink

    String Yes Bot-defined invoice payload, 1-128 bytes.

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

  24. val photoHeight: Option[Int]

    Permalink

    Integer Optional Photo height

  25. val photoSize: Option[Int]

    Permalink

    Integer Optional Photo size

  26. val photoUrl: Option[String]

    Permalink

    String Optional URL of the product photo for the invoice.

    String Optional 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.

  27. val photoWidth: Option[Int]

    Permalink

    Integer Optional Photo width

  28. val prices: Array[LabeledPrice]

    Permalink

    Array of LabeledPrice Yes Price breakdown, a list of components (e.g.

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

  29. val providerData: Option[String]

    Permalink

    String Optional JSON-encoded data about the invoice, which will be shared with the payment provider.

    String Optional 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.

  30. val providerToken: String

    Permalink

    String Yes Payments provider token, obtained via Botfather

  31. val replyMarkup: Option[InlineKeyboardMarkup]

    Permalink

    InlineKeyboardMarkup Optional A JSON-serialized object for an inline keyboard.

    InlineKeyboardMarkup Optional 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.

  32. val replyToMessageId: Option[Long]

    Permalink

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

  33. val startParameter: String

    Permalink

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

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. val title: String

    Permalink

    String Yes Product name

  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from JsonRequest[Message]

Inherited from Request[Message]

Inherited from AnyRef

Inherited from Any

Ungrouped