Sha256: 9de9b08a68f65c55c09c4517b9465cc1fa420ae0dbd6426765b6c96df4eec33b

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InputInvoiceMessageContent < InputMessageContent
        attribute :title, Types::String
        attribute :description, Types::String
        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
        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

4 entries across 4 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/input_invoice_message_content.rb
telegram-bot-ruby-1.0.0 lib/telegram/bot/types/input_invoice_message_content.rb
telegram-bot-ruby-1.0.0.rc1 lib/telegram/bot/types/input_invoice_message_content.rb
telegram-bot-ruby-1.0.0.pre lib/telegram/bot/types/input_invoice_message_content.rb