atipugin/telegram-bot-ruby

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class ChatMemberOwner < Base
        attribute :status, Types::String.constrained(eql: 'creator').default('creator')
        attribute :user, User
        attribute :is_anonymous, Types::Bool
        attribute? :custom_title, Types::String
      end
    end
  end
end