Class: TD::Types::ChatFolderInfo

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

Overview

Contains basic information about a chat folder.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#color_idInteger

The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled.

Returns:

  • (Integer)

    the current value of color_id



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

def color_id
  @color_id
end

True, if the chat folder has invite links created by the current user.

Returns:

  • (Boolean)

    the current value of has_my_invite_links



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

def has_my_invite_links
  @has_my_invite_links
end

#iconTD::Types::ChatFolderIcon

The chosen or default icon for the chat folder.

Returns:



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

def icon
  @icon
end

#idInteger

Unique chat folder identifier.

Returns:

  • (Integer)

    the current value of id



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

def id
  @id
end

#is_shareableBoolean

True, if at least one link has been created for the folder.

Returns:

  • (Boolean)

    the current value of is_shareable



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

def is_shareable
  @is_shareable
end

#titleTD::Types::String

The title of the folder; 1-12 characters without line feeds.

Returns:

  • (TD::Types::String)

    the current value of title



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

def title
  @title
end