Class: TD::Types::ChatNotificationSettings
- Defined in:
- lib/tdlib/types/chat_notification_settings.rb
Overview
Contains information about notification settings for a chat or a forum topic.
Instance Attribute Summary collapse
-
#disable_mention_notifications ⇒ Boolean
If true, notifications for messages with mentions will be created as for an ordinary unread message.
-
#disable_pinned_message_notifications ⇒ Boolean
If true, 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 for the chat.
-
#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 for messages; 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_disable_mention_notifications ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications.
-
#use_default_disable_pinned_message_notifications ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications.
-
#use_default_mute_for ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of mute_for.
-
#use_default_mute_stories ⇒ Boolean
If true, the value for the relevant type of chat is used instead of mute_stories.
-
#use_default_show_preview ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of show_preview.
-
#use_default_show_story_sender ⇒ Boolean
If true, the value for the relevant type of chat is used instead of show_story_sender.
-
#use_default_sound ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of sound_id.
-
#use_default_story_sound ⇒ Boolean
If true, the value for the relevant type of chat is used instead of story_sound_id.
Method Summary
Methods inherited from Base
Instance Attribute Details
#disable_mention_notifications ⇒ Boolean
If true, notifications for messages with mentions will be created as for an ordinary unread message.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def disable_mention_notifications @disable_mention_notifications end |
#disable_pinned_message_notifications ⇒ Boolean
If true, notifications for incoming pinned messages will be created as for an ordinary unread message.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def @disable_pinned_message_notifications end |
#mute_for ⇒ Integer
Time left before notifications will be unmuted, in seconds.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def mute_for @mute_for end |
#mute_stories ⇒ Boolean
True, if story notifications are disabled for the chat.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def mute_stories @mute_stories end |
#show_preview ⇒ Boolean
True, if message content must be displayed in notifications.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def show_preview @show_preview end |
#show_story_sender ⇒ Boolean
True, if the sender of stories must be displayed in notifications.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def show_story_sender @show_story_sender end |
#sound_id ⇒ Integer
Identifier of the notification sound to be played for messages; 0 if sound is disabled.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 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.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def story_sound_id @story_sound_id end |
#use_default_disable_mention_notifications ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disable_mention_notifications.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_disable_mention_notifications @use_default_disable_mention_notifications end |
#use_default_disable_pinned_message_notifications ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disable_pinned_message_notifications.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def @use_default_disable_pinned_message_notifications end |
#use_default_mute_for ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of mute_for.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_mute_for @use_default_mute_for end |
#use_default_mute_stories ⇒ Boolean
If true, the value for the relevant type of chat is used instead of mute_stories.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_mute_stories @use_default_mute_stories end |
#use_default_show_preview ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of show_preview.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_show_preview @use_default_show_preview end |
#use_default_show_story_sender ⇒ Boolean
If true, the value for the relevant type of chat is used instead of show_story_sender.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_show_story_sender @use_default_show_story_sender end |
#use_default_sound ⇒ Boolean
If true, the value for the relevant type of chat or the forum chat is used instead of sound_id.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_sound @use_default_sound end |
#use_default_story_sound ⇒ Boolean
If true, the value for the relevant type of chat is used instead of story_sound_id.
31 32 33 |
# File 'lib/tdlib/types/chat_notification_settings.rb', line 31 def use_default_story_sound @use_default_story_sound end |