Class: Rubirai::GroupConfig

Inherits:
GroupInfo show all
Defined in:
lib/rubirai/objects/group_info.rb

Overview

Group config

Instance Attribute Summary collapse

Attributes inherited from GroupInfo

#bot, #raw

Instance Method Summary collapse

Constructor Details

#initialize(hash, bot = nil) ⇒ Object

Parameters:

  • hash (Hash{String => Object})
  • bot (Rubirai::Bot, nil) (defaults to: nil)


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

Instance Attribute Details

#allow_member_inviteBoolean

Returns:

  • (Boolean)


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

#announcementString

Returns:

  • (String)


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

#anonymous_chatBoolean

Returns is anonymous chat enabled.

Returns:

  • (Boolean)

    is anonymous chat enabled



70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

#auto_approveBoolean

Returns:

  • (Boolean)


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

#confess_talkBoolean

Returns is confess talk enabled.

Returns:

  • (Boolean)

    is confess talk enabled



70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

#nameString

Returns:

  • (String)


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat

Instance Method Details

#to_hHash{String => Object}

Returns:

  • (Hash{String => Object})


70
# File 'lib/rubirai/objects/group_info.rb', line 70

set_modifiable_fields :name, :announcement, :confess_talk, :allow_member_invite, :auto_approve, :anonymous_chat