Sha256: eb73da09c10821b4cff8608d4702422bc28a492beeae8457b9a406e49f9bfd75

Contents?: true

Size: 810 Bytes

Versions: 3

Compression:

Stored size: 810 Bytes

Contents

module TD::Types
  # The user is under certain restrictions in the chat.
  # Not supported in basic groups and channels.
  #
  # @attr is_member [Boolean] True, if the user is a member of the chat.
  # @attr restricted_until_date [Integer] 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.
  # @attr permissions [TD::Types::ChatPermissions] User permissions in the chat.
  class ChatMemberStatus::Restricted < ChatMemberStatus
    attribute :is_member, TD::Types::Bool
    attribute :restricted_until_date, TD::Types::Coercible::Integer
    attribute :permissions, TD::Types::ChatPermissions
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.4 lib/tdlib/types/chat_member_status/restricted.rb
tdlib-schema-1.7.0.3 lib/tdlib/types/chat_member_status/restricted.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/chat_member_status/restricted.rb