SetReactionsNotifySettingsRequest

Both users and bots may be able to use this request. See code examples.

---functions---
account.setReactionsNotifySettings#316ce548 settings:ReactionsNotifySettings = ReactionsNotifySettings

Returns

ReactionsNotifySettings

This type can only be an instance of:

ReactionsNotifySettings

Parameters

settingsReactionsNotifySettings

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.account.SetReactionsNotifySettingsRequest(
        settings=types.ReactionsNotifySettings(
            sound=types.NotificationSoundDefault(),
            show_previews=False,
            messages_notify_from=types.ReactionNotificationsFromContacts(),
            stories_notify_from=types.ReactionNotificationsFromContacts()
        )
    ))
    print(result.stringify())