Sha256: c4de9206ce389d6aab5c4a20af82c8c123ad1082913e5ce10f8ead0e649cc8c0

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InputInvoiceMessageContent < Base
        attribute :title, Types::String.constrained(min_size: 1, max_size: 32)
        attribute :description, Types::String.constrained(min_size: 1, max_size: 255)
        attribute :payload, Types::String
        attribute? :provider_token, Types::String
        attribute :currency, Types::String
        attribute :prices, Types::Array.of(LabeledPrice)
        attribute? :max_tip_amount, Types::Integer.default(0)
        attribute? :suggested_tip_amounts, Types::Array.of(Types::Integer)
        attribute? :provider_data, Types::String
        attribute? :photo_url, Types::String
        attribute? :photo_size, Types::Integer
        attribute? :photo_width, Types::Integer
        attribute? :photo_height, Types::Integer
        attribute? :need_name, Types::Bool
        attribute? :need_phone_number, Types::Bool
        attribute? :need_email, Types::Bool
        attribute? :need_shipping_address, Types::Bool
        attribute? :send_phone_number_to_provider, Types::Bool
        attribute? :send_email_to_provider, Types::Bool
        attribute? :is_flexible, Types::Bool
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/input_invoice_message_content.rb