update_device_locked()

async Client.update_device_locked()

When passcode lock is enabled, hides message texts in incoming PUSH notifications after inactivity period.

Usable by Users Bots
Parameters:

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

Returns:

bool – On success, True is returned.