ReactionsNotifySettings

class pyrogram.raw.types.ReactionsNotifySettings

Reaction notification settings, see here » for more info.

Constructor of ReactionsNotifySettings.

Details:
  • Layer: 223

  • ID: 56E34970

Parameters:
  • sound (NotificationSound) – Notification sound for reactions »

  • show_previews (bool) – If false, push notifications » about message/story reactions will only be of type REACT_HIDDEN/REACT_STORY_HIDDEN, without any information about the reacted-to story or the reaction itself.

  • messages_notify_from (ReactionNotificationsFrom, optional) – Message reaction notification settings, if not set completely disables notifications/updates about message reactions.

  • stories_notify_from (ReactionNotificationsFrom, optional) – Story reaction notification settings, if not set completely disables notifications/updates about reactions to stories.

Functions:

This object can be returned by 2 functions.

account.GetReactionsNotifySettings

Get the current reaction notification settings ».

account.SetReactionsNotifySettings

Change the reaction notification settings ».

TL Schema

reactionsNotifySettings#56e34970
flags:#
messages_notify_from:flags.0?ReactionNotificationsFrom
stories_notify_from:flags.1?ReactionNotificationsFrom
sound:NotificationSound
show_previews:Bool

= ReactionsNotifySettings

Parameter Tree

ReactionsNotifySettings
├── messages_notify_fromReactionNotificationsFrom (optional)
├── stories_notify_fromReactionNotificationsFrom (optional)
├── soundNotificationSound
│ ├── NotificationSoundNone
│ │ ├── titlestring
│ │ └── datastring
│ └── idlong
└── show_previewsBool

Example

ReactionsNotifySettings(
    sound=NotificationSoundDefault(),
    show_previews=True,
)