Class: TD::Types::ChatActionBar::ReportAddBlock

Inherits:
TD::Types::ChatActionBar show all
Defined in:
lib/tdlib/types/chat_action_bar/report_add_block.rb

Overview

The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be

blocked using the method blockUser, or the other user can be added to the contact list using the method addContact.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_unarchiveBoolean

If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings.

Returns:

  • (Boolean)

    the current value of can_unarchive



10
11
12
# File 'lib/tdlib/types/chat_action_bar/report_add_block.rb', line 10

def can_unarchive
  @can_unarchive
end

#distanceInteger

If non-negative, the current user was found by the peer through searchChatsNearby and this is the distance between the users.

Returns:

  • (Integer)

    the current value of distance



10
11
12
# File 'lib/tdlib/types/chat_action_bar/report_add_block.rb', line 10

def distance
  @distance
end