atipugin/telegram-bot-ruby

View on GitHub
lib/telegram/bot/types/inline_query_result_voice.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InlineQueryResultVoice < Base
        attribute :type, Types::String.constrained(eql: 'voice').default('voice')
        attribute :id, Types::String
        attribute :voice_url, Types::String
        attribute :title, Types::String
        attribute? :caption, Types::String
        attribute? :parse_mode, Types::String
        attribute? :caption_entities, Types::Array.of(MessageEntity)
        attribute? :voice_duration, Types::Integer
        attribute? :reply_markup, InlineKeyboardMarkup
        attribute? :input_message_content, InputMessageContent
      end
    end
  end
end