Sha256: 2021bf3354352d23f6c8a6864a5e30ced19b4b072505312e917abed82c0eb793

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

module TD::Types
  # A message with an invoice; can be used only by bots.
  #
  # @attr invoice [TD::Types::Invoice] Invoice.
  # @attr title [TD::Types::String] Product title; 1-32 characters.
  # @attr description [TD::Types::String] Product description; 0-255 characters.
  # @attr photo_url [TD::Types::String, nil] Product photo URL; optional.
  # @attr photo_size [Integer] Product photo size.
  # @attr photo_width [Integer] Product photo width.
  # @attr photo_height [Integer] Product photo height.
  # @attr payload [String] The invoice payload.
  # @attr provider_token [TD::Types::String] Payment provider token.
  # @attr provider_data [TD::Types::String] JSON-encoded data about the invoice, which will be shared with the payment
  #   provider.
  # @attr start_parameter [TD::Types::String] Unique invoice bot deep link parameter for the generation of this
  #   invoice.
  #   If empty, it would be possible to pay directly from forwards of the invoice message.
  class InputMessageContent::Invoice < InputMessageContent
    attribute :invoice, TD::Types::Invoice
    attribute :title, TD::Types::String
    attribute :description, TD::Types::String
    attribute :photo_url, TD::Types::String.optional.default(nil)
    attribute :photo_size, TD::Types::Coercible::Integer
    attribute :photo_width, TD::Types::Coercible::Integer
    attribute :photo_height, TD::Types::Coercible::Integer
    attribute :payload, TD::Types::Coercible::String
    attribute :provider_token, TD::Types::String
    attribute :provider_data, TD::Types::String
    attribute :start_parameter, TD::Types::String
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/input_message_content/invoice.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/input_message_content/invoice.rb