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 setMessageSenderBlockList, or the other user can be added to the contact list using the method
addContact.

If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be

shown.

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



13
14
15
# File 'lib/tdlib/types/chat_action_bar/report_add_block.rb', line 13

def can_unarchive
  @can_unarchive
end

#distanceInteger

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

Returns:

  • (Integer)

    the current value of distance



13
14
15
# File 'lib/tdlib/types/chat_action_bar/report_add_block.rb', line 13

def distance
  @distance
end