account.UpdateDeviceLocked

class pyrogram.raw.functions.account.UpdateDeviceLocked

When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.

Details:
  • Layer: 223

  • ID: 38DF3532

Parameters:

period (int 32-bit) – Inactivity period after which to start hiding message texts in PUSH notifications.

Returns:

bool

TL Schema

account.updateDeviceLocked#38df3532
period:int

= Bool

Parameter Tree

UpdateDeviceLocked
└── periodint

Example

await app.invoke(
    UpdateDeviceLocked(
        period=0,
    )
)