Class: TD::Types::Chat
Overview
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
Instance Attribute Summary collapse
-
#action_bar ⇒ TD::Types::ChatActionBar?
Describes actions which should be possible to do through a chat action bar; may be null.
-
#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 or reportChatPhoto.
-
#client_data ⇒ TD::Types::String
Contains application-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.
-
#has_scheduled_messages ⇒ Boolean
True, if the chat has scheduled messages.
-
#id ⇒ Integer
Chat unique identifier.
-
#is_blocked ⇒ Boolean
True, if the chat is blocked by the current user and private messages from the chat can’t be received.
-
#is_marked_as_unread ⇒ Boolean
True, if the chat is marked as unread.
-
#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.
-
#message_ttl_setting ⇒ Integer
Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined.
-
#notification_settings ⇒ TD::Types::ChatNotificationSettings
Notification settings for this chat.
-
#permissions ⇒ TD::Types::ChatPermissions
Actions that non-administrator chat members are allowed to take in the chat.
-
#photo ⇒ TD::Types::ChatPhotoInfo?
Chat photo; may be null.
-
#positions ⇒ Array<TD::Types::ChatPosition>
Positions of the chat in chat lists.
-
#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 ⇒ TD::Types::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.
-
#voice_chat ⇒ TD::Types::VoiceChat
Contains information about voice chat of the chat.
Method Summary
Methods inherited from Base
Instance Attribute Details
#action_bar ⇒ TD::Types::ChatActionBar?
Describes actions which should be possible to do through a chat action bar; may be null.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @action_bar end |
#can_be_deleted_for_all_users ⇒ Boolean
True, if the chat messages can be deleted for all users.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 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.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 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 or reportChatPhoto.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def can_be_reported @can_be_reported end |
#client_data ⇒ TD::Types::String
Contains application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 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.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def default_disable_notification @default_disable_notification end |
#draft_message ⇒ TD::Types::DraftMessage?
A draft of a message in the chat; may be null.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @draft_message end |
#has_scheduled_messages ⇒ Boolean
True, if the chat has scheduled messages.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @has_scheduled_messages end |
#id ⇒ Integer
Chat unique identifier.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def id @id end |
#is_blocked ⇒ Boolean
True, if the chat is blocked by the current user and private messages from the chat can’t be received.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def is_blocked @is_blocked end |
#is_marked_as_unread ⇒ Boolean
True, if the chat is marked as unread.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def is_marked_as_unread @is_marked_as_unread end |
#last_message ⇒ TD::Types::Message?
Last message in the chat; may be null.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @last_message end |
#last_read_inbox_message_id ⇒ Integer
Identifier of the last read incoming message.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @last_read_inbox_message_id end |
#last_read_outbox_message_id ⇒ Integer
Identifier of the last read outgoing message.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @last_read_outbox_message_id end |
#message_ttl_setting ⇒ Integer
Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @message_ttl_setting end |
#notification_settings ⇒ TD::Types::ChatNotificationSettings
Notification settings for this chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def notification_settings @notification_settings end |
#permissions ⇒ TD::Types::ChatPermissions
Actions that non-administrator chat members are allowed to take in the chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @permissions end |
#photo ⇒ TD::Types::ChatPhotoInfo?
Chat photo; may be null.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def photo @photo end |
#positions ⇒ Array<TD::Types::ChatPosition>
Positions of the chat in chat lists.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def positions @positions 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.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def @reply_markup_message_id end |
#title ⇒ TD::Types::String
Chat title.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def title @title end |
#type ⇒ TD::Types::ChatType
Type of the chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def type @type end |
#unread_count ⇒ Integer
Number of unread messages in the chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def unread_count @unread_count end |
#unread_mention_count ⇒ Integer
Number of unread messages with a mention/reply in the chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def unread_mention_count @unread_mention_count end |
#voice_chat ⇒ TD::Types::VoiceChat
Contains information about voice chat of the chat.
42 43 44 |
# File 'lib/tdlib/types/chat.rb', line 42 def voice_chat @voice_chat end |