Package org.drinkless.tdlib
Class TdApi.ChatNotificationSettings
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatNotificationSettings
- Enclosing class:
- TdApi
Contains information about notification settings for a chat or a forum topic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanIf true, notifications for messages with mentions will be created as for an ordinary unread message.booleanIf true, 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 for the chat.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 for messages; 0 if sound is disabled.longIdentifier of the notification sound to be played for stories; 0 if sound is disabled.booleanIf true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications.booleanIf true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications.booleanIf true, the value for the relevant type of chat or the forum chat is used instead of muteFor.booleanIf true, the value for the relevant type of chat is used instead of muteStories.booleanIf true, the value for the relevant type of chat or the forum chat is used instead of showPreview.booleanIf true, the value for the relevant type of chat is used instead of showStoryPoster.booleanIf true, the value for the relevant type of chat or the forum chat is used instead of soundId.booleanIf true, the value for the relevant type of chat is used instead of storySoundId. -
Constructor Summary
ConstructorsConstructorDescriptionContains information about notification settings for a chat or a forum topic.ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, long soundId, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, boolean useDefaultStorySound, long storySoundId, boolean useDefaultShowStoryPoster, boolean showStoryPoster, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) Contains information about notification settings for a chat or a forum topic. -
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
-
useDefaultMuteFor
public boolean useDefaultMuteForIf true, the value for the relevant type of chat or the forum chat is used instead of muteFor. -
muteFor
public int muteForTime left before notifications will be unmuted, in seconds. -
useDefaultSound
public boolean useDefaultSoundIf true, the value for the relevant type of chat or the forum chat is used instead of soundId. -
soundId
public long soundIdIdentifier of the notification sound to be played for messages; 0 if sound is disabled. -
useDefaultShowPreview
public boolean useDefaultShowPreviewIf true, the value for the relevant type of chat or the forum chat is used instead of showPreview. -
showPreview
public boolean showPreviewTrue, if message content must be displayed in notifications. -
useDefaultMuteStories
public boolean useDefaultMuteStoriesIf true, the value for the relevant type of chat is used instead of muteStories. -
muteStories
public boolean muteStoriesTrue, if story notifications are disabled for the chat. -
useDefaultStorySound
public boolean useDefaultStorySoundIf true, the value for the relevant type of chat is used instead of storySoundId. -
storySoundId
public long storySoundIdIdentifier of the notification sound to be played for stories; 0 if sound is disabled. -
useDefaultShowStoryPoster
public boolean useDefaultShowStoryPosterIf true, the value for the relevant type of chat is used instead of showStoryPoster. -
showStoryPoster
public boolean showStoryPosterTrue, if the chat that posted a story must be displayed in notifications. -
useDefaultDisablePinnedMessageNotifications
public boolean useDefaultDisablePinnedMessageNotificationsIf true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications. -
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotificationsIf true, notifications for incoming pinned messages will be created as for an ordinary unread message. -
useDefaultDisableMentionNotifications
public boolean useDefaultDisableMentionNotificationsIf true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications. -
disableMentionNotifications
public boolean disableMentionNotificationsIf true, 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
-
ChatNotificationSettings
public ChatNotificationSettings()Contains information about notification settings for a chat or a forum topic. -
ChatNotificationSettings
public ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, long soundId, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, boolean useDefaultStorySound, long storySoundId, boolean useDefaultShowStoryPoster, boolean showStoryPoster, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) Contains information about notification settings for a chat or a forum topic.- Parameters:
useDefaultMuteFor- If true, the value for the relevant type of chat or the forum chat is used instead of muteFor.muteFor- Time left before notifications will be unmuted, in seconds.useDefaultSound- If true, the value for the relevant type of chat or the forum chat is used instead of soundId.soundId- Identifier of the notification sound to be played for messages; 0 if sound is disabled.useDefaultShowPreview- If true, the value for the relevant type of chat or the forum chat is used instead of showPreview.showPreview- True, if message content must be displayed in notifications.useDefaultMuteStories- If true, the value for the relevant type of chat is used instead of muteStories.muteStories- True, if story notifications are disabled for the chat.useDefaultStorySound- If true, the value for the relevant type of chat is used instead of storySoundId.storySoundId- Identifier of the notification sound to be played for stories; 0 if sound is disabled.useDefaultShowStoryPoster- If true, the value for the relevant type of chat is used instead of showStoryPoster.showStoryPoster- True, if the chat that posted a story must be displayed in notifications.useDefaultDisablePinnedMessageNotifications- If true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications.disablePinnedMessageNotifications- If true, notifications for incoming pinned messages will be created as for an ordinary unread message.useDefaultDisableMentionNotifications- If true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications.disableMentionNotifications- If true, 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
-