atipugin/telegram-bot-ruby

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

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class ChatBoostSourceGiveaway < Base
        attribute :source, Types::String.constrained(eql: 'giveaway').default('giveaway')
        attribute :giveaway_message_id, Types::Integer
        attribute? :user, User
        attribute? :is_unclaimed, Types::True
      end
    end
  end
end