Class: TD::Types::ChatMemberStatus::Restricted

Inherits:
TD::Types::ChatMemberStatus show all
Defined in:
lib/tdlib/types/chat_member_status/restricted.rb

Overview

The user is under certain restrictions in the chat. Not supported in basic groups and channels.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_memberBoolean

True, if the user is a member of the chat.

Returns:

  • (Boolean)

    the current value of is_member



11
12
13
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11

def is_member
  @is_member
end

#permissionsTD::Types::ChatPermissions

User permissions in the chat.

Returns:



11
12
13
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11

def permissions
  @permissions
end

#restricted_until_dateInteger

Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever.

Returns:

  • (Integer)

    the current value of restricted_until_date



11
12
13
# File 'lib/tdlib/types/chat_member_status/restricted.rb', line 11

def restricted_until_date
  @restricted_until_date
end