Class: TD::Types::ChatFolder
- Defined in:
- lib/tdlib/types/chat_folder.rb
Overview
Represents a folder for user chats.
Instance Attribute Summary collapse
-
#color_id ⇒ Integer
The identifier of the chosen color for the chat folder icon; from -1 to 6.
-
#exclude_archived ⇒ Boolean
True, if archived chats need to be excluded.
-
#exclude_muted ⇒ Boolean
True, if muted chats need to be excluded.
-
#exclude_read ⇒ Boolean
True, if read chats need to be excluded.
-
#excluded_chat_ids ⇒ Array<Integer>
The chat identifiers of always excluded chats in the folder.
-
#icon ⇒ TD::Types::ChatFolderIcon?
The chosen icon for the chat folder; may be null.
-
#include_bots ⇒ Boolean
True, if bots need to be included.
-
#include_channels ⇒ Boolean
True, if channels need to be included.
-
#include_contacts ⇒ Boolean
True, if contacts need to be included.
-
#include_groups ⇒ Boolean
True, if basic groups and supergroups need to be included.
-
#include_non_contacts ⇒ Boolean
True, if non-contact users need to be included.
-
#included_chat_ids ⇒ Array<Integer>
The chat identifiers of always included chats in the folder.
-
#is_shareable ⇒ Boolean
True, if at least one link has been created for the folder.
-
#pinned_chat_ids ⇒ Array<Integer>
The chat identifiers of pinned chats in the folder.
-
#title ⇒ TD::Types::String
The title of the folder; 1-12 characters without line feeds.
Method Summary
Methods inherited from Base
Instance Attribute Details
#color_id ⇒ Integer
The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can’t be changed if folder tags are disabled or the current user doesn’t have Telegram Premium subscription.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def color_id @color_id end |
#exclude_archived ⇒ Boolean
True, if archived chats need to be excluded.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def exclude_archived @exclude_archived end |
#exclude_muted ⇒ Boolean
True, if muted chats need to be excluded.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def exclude_muted @exclude_muted end |
#exclude_read ⇒ Boolean
True, if read chats need to be excluded.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def exclude_read @exclude_read end |
#excluded_chat_ids ⇒ Array<Integer>
The chat identifiers of always excluded chats in the folder. There can be up to getOption(“chat_folder_chosen_chat_count_max”) always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def excluded_chat_ids @excluded_chat_ids end |
#icon ⇒ TD::Types::ChatFolderIcon?
The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def icon @icon end |
#include_bots ⇒ Boolean
True, if bots need to be included.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def include_bots @include_bots end |
#include_channels ⇒ Boolean
True, if channels need to be included.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def include_channels @include_channels end |
#include_contacts ⇒ Boolean
True, if contacts need to be included.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def include_contacts @include_contacts end |
#include_groups ⇒ Boolean
True, if basic groups and supergroups need to be included.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def include_groups @include_groups end |
#include_non_contacts ⇒ Boolean
True, if non-contact users need to be included.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def include_non_contacts @include_non_contacts end |
#included_chat_ids ⇒ Array<Integer>
The chat identifiers of always included chats in the folder. There can be up to getOption(“chat_folder_chosen_chat_count_max”) pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def included_chat_ids @included_chat_ids end |
#is_shareable ⇒ Boolean
True, if at least one link has been created for the folder.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def is_shareable @is_shareable end |
#pinned_chat_ids ⇒ Array<Integer>
The chat identifiers of pinned chats in the folder. There can be up to getOption(“chat_folder_chosen_chat_count_max”) pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def pinned_chat_ids @pinned_chat_ids end |
#title ⇒ TD::Types::String
The title of the folder; 1-12 characters without line feeds.
28 29 30 |
# File 'lib/tdlib/types/chat_folder.rb', line 28 def title @title end |