Class: TD::Types::NewChatPrivacySettings

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/new_chat_privacy_settings.rb

Overview

Contains privacy settings for new chats with non-contacts.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#allow_new_chats_from_unknown_usersBoolean

True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting.

Returns:

  • (Boolean)

    the current value of allow_new_chats_from_unknown_users



7
8
9
# File 'lib/tdlib/types/new_chat_privacy_settings.rb', line 7

def allow_new_chats_from_unknown_users
  @allow_new_chats_from_unknown_users
end