Class: TD::Types::Chat
Overview
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
Instance Attribute Summary collapse
-
#can_be_deleted_for_all_users ⇒ Boolean
True, if the chat messages can be deleted for all users.
-
#can_be_deleted_only_for_self ⇒ Boolean
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
-
#can_be_reported ⇒ Boolean
True, if the chat can be reported to Telegram moderators through reportChat.
-
#client_data ⇒ String
Contains client-specific data associated with the chat.
-
#default_disable_notification ⇒ Boolean
Default value of the disable_notification parameter, used when a message is sent to the chat.
-
#draft_message ⇒ TD::Types::DraftMessage?
A draft of a message in the chat; may be null.
-
#id ⇒ Integer
Chat unique identifier.
-
#is_marked_as_unread ⇒ Boolean
True, if the chat is marked as unread.
-
#is_pinned ⇒ Boolean
True, if the chat is pinned.
-
#is_sponsored ⇒ Boolean
True, if the chat is sponsored by the user's MTProxy server.
-
#last_message ⇒ TD::Types::Message?
Last message in the chat; may be null.
-
#last_read_inbox_message_id ⇒ Integer
Identifier of the last read incoming message.
-
#last_read_outbox_message_id ⇒ Integer
Identifier of the last read outgoing message.
-
#notification_settings ⇒ TD::Types::ChatNotificationSettings
Notification settings for this chat.
-
#order ⇒ Integer
Descending parameter by which chats are sorted in the main chat list.
-
#permissions ⇒ TD::Types::ChatPermissions
Actions that non-administrator chat members are allowed to take in the chat.
-
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null.
-
#pinned_message_id ⇒ Integer
Identifier of the pinned message in the chat; 0 if none.
-
#reply_markup_message_id ⇒ Integer
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
-
#title ⇒ String
Chat title.
-
#type ⇒ TD::Types::ChatType
Type of the chat.
-
#unread_count ⇒ Integer
Number of unread messages in the chat.
-
#unread_mention_count ⇒ Integer
Number of unread messages with a mention/reply in the chat.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_be_deleted_for_all_users ⇒ Boolean
True, if the chat messages can be deleted for all users.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def can_be_deleted_for_all_users @can_be_deleted_for_all_users end |
#can_be_deleted_only_for_self ⇒ Boolean
True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def can_be_deleted_only_for_self @can_be_deleted_only_for_self end |
#can_be_reported ⇒ Boolean
True, if the chat can be reported to Telegram moderators through reportChat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def can_be_reported @can_be_reported end |
#client_data ⇒ String
Contains client-specific data associated with the chat. (For example, the chat position or local chat notification settings can be stored here.) Persistent if a message database is used.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def client_data @client_data end |
#default_disable_notification ⇒ Boolean
Default value of the disable_notification parameter, used when a message is sent to the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def default_disable_notification @default_disable_notification end |
#draft_message ⇒ TD::Types::DraftMessage?
A draft of a message in the chat; may be null.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @draft_message end |
#id ⇒ Integer
Chat unique identifier.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def id @id end |
#is_marked_as_unread ⇒ Boolean
True, if the chat is marked as unread.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def is_marked_as_unread @is_marked_as_unread end |
#is_pinned ⇒ Boolean
True, if the chat is pinned.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def is_pinned @is_pinned end |
#is_sponsored ⇒ Boolean
True, if the chat is sponsored by the user's MTProxy server.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def is_sponsored @is_sponsored end |
#last_message ⇒ TD::Types::Message?
Last message in the chat; may be null.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @last_message end |
#last_read_inbox_message_id ⇒ Integer
Identifier of the last read incoming message.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @last_read_inbox_message_id end |
#last_read_outbox_message_id ⇒ Integer
Identifier of the last read outgoing message.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @last_read_outbox_message_id end |
#notification_settings ⇒ TD::Types::ChatNotificationSettings
Notification settings for this chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def notification_settings @notification_settings end |
#order ⇒ Integer
Descending parameter by which chats are sorted in the main chat list. If the order number of two chats is the same, they must be sorted in descending order by ID. If 0, the position of the chat in the list is undetermined.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def order @order end |
#permissions ⇒ TD::Types::ChatPermissions
Actions that non-administrator chat members are allowed to take in the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @permissions end |
#photo ⇒ TD::Types::ChatPhoto?
Chat photo; may be null.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def photo @photo end |
#pinned_message_id ⇒ Integer
Identifier of the pinned message in the chat; 0 if none.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @pinned_message_id end |
#reply_markup_message_id ⇒ Integer
Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def @reply_markup_message_id end |
#title ⇒ String
Chat title.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def title @title end |
#type ⇒ TD::Types::ChatType
Type of the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def type @type end |
#unread_count ⇒ Integer
Number of unread messages in the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def unread_count @unread_count end |
#unread_mention_count ⇒ Integer
Number of unread messages with a mention/reply in the chat.
36 37 38 |
# File 'lib/tdlib/types/chat.rb', line 36 def unread_mention_count @unread_mention_count end |