public static class TdApi.ScopeNotificationSettings extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableMentionNotifications
True, if notifications for messages with mentions will be created as for an ordinary unread message.
|
boolean |
disablePinnedMessageNotifications
True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
|
int |
muteFor
Time left before notifications will be unmuted, in seconds.
|
boolean |
muteStories
True, if story notifications are disabled.
|
boolean |
showPreview
True, if message content must be displayed in notifications.
|
boolean |
showStorySender
True, if the sender of stories must be displayed in notifications.
|
long |
soundId
Identifier of the notification sound to be played; 0 if sound is disabled.
|
long |
storySoundId
Identifier of the notification sound to be played for stories; 0 if sound is disabled.
|
boolean |
useDefaultMuteStories
If true, story notifications are received only for the first 5 chats from topChatCategoryUsers regardless of the value of muteStories.
|
| Constructor and Description |
|---|
ScopeNotificationSettings()
Contains information about notification settings for several chats.
|
ScopeNotificationSettings(int muteFor,
long soundId,
boolean showPreview,
boolean useDefaultMuteStories,
boolean muteStories,
long storySoundId,
boolean showStorySender,
boolean disablePinnedMessageNotifications,
boolean disableMentionNotifications)
Contains information about notification settings for several chats.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int muteFor
public long soundId
public boolean showPreview
public boolean useDefaultMuteStories
public boolean muteStories
public long storySoundId
public boolean showStorySender
public boolean disablePinnedMessageNotifications
public boolean disableMentionNotifications
public static final int CONSTRUCTOR
public ScopeNotificationSettings()
public ScopeNotificationSettings(int muteFor,
long soundId,
boolean showPreview,
boolean useDefaultMuteStories,
boolean muteStories,
long storySoundId,
boolean showStorySender,
boolean disablePinnedMessageNotifications,
boolean disableMentionNotifications)
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.showStorySender - True, if the sender of stories 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object