Class: TD::Types::Chat

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

Overview

A chat. (Can be a private chat, basic group, supergroup, or secret chat).

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#action_barTD::Types::ChatActionBar?

Describes actions which should be possible to do through a chat action bar; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def action_bar
  @action_bar
end

#can_be_deleted_for_all_usersBoolean

True, if the chat messages can be deleted for all users.

Returns:

  • (Boolean)

    the current value of 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_selfBoolean

True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.

Returns:

  • (Boolean)

    the current value of can_be_deleted_only_for_self



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_reportedBoolean

True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.

Returns:

  • (Boolean)

    the current value of can_be_reported



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def can_be_reported
  @can_be_reported
end

#client_dataTD::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.

Returns:

  • (TD::Types::String)

    the current value of client_data



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def client_data
  @client_data
end

#default_disable_notificationBoolean

Default value of the disable_notification parameter, used when a message is sent to the chat.

Returns:

  • (Boolean)

    the current value of default_disable_notification



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def default_disable_notification
  @default_disable_notification
end

#draft_messageTD::Types::DraftMessage?

A draft of a message in the chat; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def draft_message
  @draft_message
end

#has_scheduled_messagesBoolean

True, if the chat has scheduled messages.

Returns:

  • (Boolean)

    the current value of has_scheduled_messages



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def has_scheduled_messages
  @has_scheduled_messages
end

#idInteger

Chat unique identifier.

Returns:

  • (Integer)

    the current value of id



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def id
  @id
end

#is_blockedBoolean

True, if the chat is blocked by the current user and private messages from the chat can’t be received.

Returns:

  • (Boolean)

    the current value of is_blocked



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def is_blocked
  @is_blocked
end

#is_marked_as_unreadBoolean

True, if the chat is marked as unread.

Returns:

  • (Boolean)

    the current value of 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_messageTD::Types::Message?

Last message in the chat; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def last_message
  @last_message
end

#last_read_inbox_message_idInteger

Identifier of the last read incoming message.

Returns:

  • (Integer)

    the current value of last_read_inbox_message_id



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def last_read_inbox_message_id
  @last_read_inbox_message_id
end

#last_read_outbox_message_idInteger

Identifier of the last read outgoing message.

Returns:

  • (Integer)

    the current value of last_read_outbox_message_id



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def last_read_outbox_message_id
  @last_read_outbox_message_id
end

#message_ttl_settingInteger

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.

Returns:

  • (Integer)

    the current value of message_ttl_setting



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def message_ttl_setting
  @message_ttl_setting
end

#notification_settingsTD::Types::ChatNotificationSettings

Notification settings for this chat.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def notification_settings
  @notification_settings
end

#permissionsTD::Types::ChatPermissions

Actions that non-administrator chat members are allowed to take in the chat.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def permissions
  @permissions
end

#photoTD::Types::ChatPhotoInfo?

Chat photo; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def photo
  @photo
end

#positionsArray<TD::Types::ChatPosition>

Positions of the chat in chat lists.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def positions
  @positions
end

#reply_markup_message_idInteger

Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.

Returns:

  • (Integer)

    the current value of reply_markup_message_id



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def reply_markup_message_id
  @reply_markup_message_id
end

#titleTD::Types::String

Chat title.

Returns:

  • (TD::Types::String)

    the current value of title



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def title
  @title
end

#typeTD::Types::ChatType

Type of the chat.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def type
  @type
end

#unread_countInteger

Number of unread messages in the chat.

Returns:

  • (Integer)

    the current value of unread_count



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def unread_count
  @unread_count
end

#unread_mention_countInteger

Number of unread messages with a mention/reply in the chat.

Returns:

  • (Integer)

    the current value of unread_mention_count



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def unread_mention_count
  @unread_mention_count
end

#voice_chatTD::Types::VoiceChat

Contains information about voice chat of the chat.

Returns:



42
43
44
# File 'lib/tdlib/types/chat.rb', line 42

def voice_chat
  @voice_chat
end