Package org.drinkless.tdlib
Class TdApi.ScopeNotificationSettings
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ScopeNotificationSettings
- Enclosing class:
- TdApi
Contains information about notification settings for several chats.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if notifications for messages with mentions will be created as for an ordinary unread message.booleanTrue, if notifications for incoming pinned messages will be created as for an ordinary unread message.intTime left before notifications will be unmuted, in seconds.booleanTrue, if story notifications are disabled.booleanTrue, if message content must be displayed in notifications.booleanTrue, if the chat that posted a story must be displayed in notifications.longIdentifier of the notification sound to be played; 0 if sound is disabled.longIdentifier of the notification sound to be played for stories; 0 if sound is disabled.booleanIf true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of muteStories. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about notification settings for several chats.ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, long storySoundId, boolean showStoryPoster, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications) Contains information about notification settings for several chats. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
muteFor
public int muteForTime left before notifications will be unmuted, in seconds. -
soundId
public long soundIdIdentifier of the notification sound to be played; 0 if sound is disabled. -
showPreview
public boolean showPreviewTrue, if message content must be displayed in notifications. -
useDefaultMuteStories
public boolean useDefaultMuteStoriesIf true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of muteStories. -
muteStories
public boolean muteStoriesTrue, if story notifications are disabled. -
storySoundId
public long storySoundIdIdentifier of the notification sound to be played for stories; 0 if sound is disabled. -
showStoryPoster
public boolean showStoryPosterTrue, if the chat that posted a story must be displayed in notifications. -
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotificationsTrue, if notifications for incoming pinned messages will be created as for an ordinary unread message. -
disableMentionNotifications
public boolean disableMentionNotificationsTrue, if notifications for messages with mentions will be created as for an ordinary unread message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ScopeNotificationSettings
public ScopeNotificationSettings()Contains information about notification settings for several chats. -
ScopeNotificationSettings
public ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, long storySoundId, boolean showStoryPoster, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications) Contains information about notification settings for several chats.- Parameters:
muteFor- Time left before notifications will be unmuted, in seconds.soundId- Identifier of the notification sound to be played; 0 if sound is disabled.showPreview- True, if message content must be displayed in notifications.useDefaultMuteStories- If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of muteStories.muteStories- True, if story notifications are disabled.storySoundId- Identifier of the notification sound to be played for stories; 0 if sound is disabled.showStoryPoster- True, if the chat that posted a story must be displayed in notifications.disablePinnedMessageNotifications- True, if notifications for incoming pinned messages will be created as for an ordinary unread message.disableMentionNotifications- True, if notifications for messages with mentions will be created as for an ordinary unread message.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-