Layer 227
PeerNotifySettingsObj
Notification settings.
constructor
peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettings;
Parameters
| Name | Type | Description |
|---|---|---|
| ShowPreviews | flags .0? Bool | (Ternary value) If set, indicates whether or not to display previews of messages in notifications; otherwise the default behavior should be used. |
| Silent | flags .1? Bool | (Ternary value) If set, indicates whether to mute or unmute the peer; otherwise the default behavior should be used. |
| MuteUntil | flags .2? int | Mute all notifications until this date |
| IosSound | flags .3? NotificationSound | Notification sound for the official i OS application |
| AndroidSound | flags .4? NotificationSound | Notification sound for the official android application |
| OtherSound | flags .5? NotificationSound | Notification sound for other applications |
| StoriesMuted | flags .6? Bool | Whether story notifications should be disabled. |
| StoriesHideSender | flags .7? Bool | Whether the sender name should be displayed in story notifications. |
| StoriesIosSound | flags .8? NotificationSound | Sound for story notifications on the official i OS application |
| StoriesAndroidSound | flags .9? NotificationSound | Sound for story notifications on the official Android application |
| StoriesOtherSound | flags .10? NotificationSound | Sound for story notifications on other applications |
Returns
PeerNotifySettingsGogram Example
// Creating PeerNotifySettingsObj constructor obj := &tg.PeerNotifySettingsObj{ ShowPreviews: nil, Silent: nil, MuteUntil: nil, IosSound: nil, AndroidSound: nil, OtherSound: nil, // ... more required fields }