Sha256: 04c85ef42a9fdd7e186a4611659659681af70863fc07286c79e3a63e3e680c68

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InputMediaPhoto < Base
        attribute :type, Types::String.constrained(eql: 'photo').default('photo')
        attribute :media, Types::String
        attribute? :caption, Types::String
        attribute? :parse_mode, Types::String
        attribute? :caption_entities, Types::Array.of(MessageEntity)
        attribute? :has_spoiler, Types::Bool
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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