Sha256: 242dd38b2ab9628be2df58433d94110a1c38be57b0d4b8e240e10db6ea873cee

Contents?: true

Size: 722 Bytes

Versions: 2

Compression:

Stored size: 722 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InlineQueryResultAudio < Base
        attribute :type, Types::String.constrained(eql: 'audio').default('audio')
        attribute :id, Types::String
        attribute :audio_url, Types::String
        attribute :title, Types::String
        attribute? :caption, Types::String
        attribute? :parse_mode, Types::String
        attribute? :caption_entities, Types::Array.of(MessageEntity)
        attribute? :performer, Types::String
        attribute? :audio_duration, Types::Integer
        attribute? :reply_markup, InlineKeyboardMarkup
        attribute? :input_message_content, InputMessageContent
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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