Class: TD::Types::Update::NotificationGroup

Inherits:
TD::Types::Update show all
Defined in:
lib/tdlib/types/update/notification_group.rb

Overview

A list of active notifications in a notification group has changed.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#added_notificationsArray<TD::Types::Notification>

List of added group notifications, sorted by notification ID.

Returns:



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def added_notifications
  @added_notifications
end

#chat_idInteger

Identifier of a chat to which all notifications in the group belong.

Returns:

  • (Integer)

    the current value of chat_id



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def chat_id
  @chat_id
end

#is_silentBoolean

True, if the notifications should be shown without sound.

Returns:

  • (Boolean)

    the current value of is_silent



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def is_silent
  @is_silent
end

#notification_group_idInteger

Unique notification group identifier.

Returns:

  • (Integer)

    the current value of notification_group_id



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def notification_group_id
  @notification_group_id
end

#notification_settings_chat_idInteger

Chat identifier, which notification settings must be applied to the added notifications.

Returns:

  • (Integer)

    the current value of notification_settings_chat_id



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def notification_settings_chat_id
  @notification_settings_chat_id
end

#removed_notification_idsArray<Integer>

Identifiers of removed group notifications, sorted by notification ID.

Returns:

  • (Array<Integer>)

    the current value of removed_notification_ids



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def removed_notification_ids
  @removed_notification_ids
end

#total_countInteger

Total number of unread notifications in the group, can be bigger than number of active notifications.

Returns:

  • (Integer)

    the current value of total_count



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def total_count
  @total_count
end

#typeTD::Types::NotificationGroupType

New type of the notification group.

Returns:



16
17
18
# File 'lib/tdlib/types/update/notification_group.rb', line 16

def type
  @type
end