Class: TD::Types::ScopeNotificationSettings
- Defined in:
- lib/tdlib/types/scope_notification_settings.rb
Overview
Contains information about notification settings for several chats.
Instance Attribute Summary collapse
-
#disable_mention_notifications ⇒ Boolean
True, if notifications for messages with mentions will be created as for an ordinary unread message.
-
#disable_pinned_message_notifications ⇒ Boolean
True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
-
#mute_for ⇒ Integer
Time left before notifications will be unmuted, in seconds.
-
#mute_stories ⇒ Boolean
True, if story notifications are disabled.
-
#show_preview ⇒ Boolean
True, if message content must be displayed in notifications.
-
#show_story_sender ⇒ Boolean
True, if the sender of stories must be displayed in notifications.
-
#sound_id ⇒ Integer
Identifier of the notification sound to be played; 0 if sound is disabled.
-
#story_sound_id ⇒ Integer
Identifier of the notification sound to be played for stories; 0 if sound is disabled.
-
#use_default_mute_stories ⇒ Boolean
If true, story notifications are received only for the first 5 chats from TopChatCategory::Users regardless of the value of mute_stories.
Method Summary
Methods inherited from Base
Instance Attribute Details
#disable_mention_notifications ⇒ Boolean
True, if notifications for messages with mentions will be created as for an ordinary unread message.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def disable_mention_notifications @disable_mention_notifications end |
#disable_pinned_message_notifications ⇒ Boolean
True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def @disable_pinned_message_notifications end |
#mute_for ⇒ Integer
Time left before notifications will be unmuted, in seconds.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def mute_for @mute_for end |
#mute_stories ⇒ Boolean
True, if story notifications are disabled.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def mute_stories @mute_stories end |
#show_preview ⇒ Boolean
True, if message content must be displayed in notifications.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def show_preview @show_preview end |
#show_story_sender ⇒ Boolean
True, if the sender of stories must be displayed in notifications.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def show_story_sender @show_story_sender end |
#sound_id ⇒ Integer
Identifier of the notification sound to be played; 0 if sound is disabled.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def sound_id @sound_id end |
#story_sound_id ⇒ Integer
Identifier of the notification sound to be played for stories; 0 if sound is disabled.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def story_sound_id @story_sound_id end |
#use_default_mute_stories ⇒ Boolean
If true, story notifications are received only for the first 5 chats from TopChatCategory::Users regardless of the value of mute_stories.
17 18 19 |
# File 'lib/tdlib/types/scope_notification_settings.rb', line 17 def use_default_mute_stories @use_default_mute_stories end |