Sha256: 7274ffea293fbaedf7408d42de8512438ef0c6255c3a48ab1fbad17b6c8c617c

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class ChatMemberAdministrator < Base
        attribute :status, Types::String.constrained(eql: 'administrator').default('administrator')
        attribute :user, User
        attribute :can_be_edited, Types::Bool
        attribute :is_anonymous, Types::Bool
        attribute :can_manage_chat, Types::Bool
        attribute :can_delete_messages, Types::Bool
        attribute :can_manage_video_chats, Types::Bool
        attribute :can_restrict_members, Types::Bool
        attribute :can_promote_members, Types::Bool
        attribute :can_change_info, Types::Bool
        attribute :can_invite_users, Types::Bool
        attribute :can_post_stories, Types::Bool
        attribute :can_edit_stories, Types::Bool
        attribute :can_delete_stories, Types::Bool
        attribute? :can_post_messages, Types::Bool
        attribute? :can_edit_messages, Types::Bool
        attribute? :can_pin_messages, Types::Bool
        attribute? :can_manage_topics, Types::Bool
        attribute? :custom_title, Types::String
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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