Layer 220
AccountUpdateDeviceLocked
When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
method
Users
account.updateDeviceLocked#38df3532 period:int = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Period | int | Inactivity period after which to start hiding message texts in PUSH notifications. |
Returns
BoolGogram Example
// AccountUpdateDeviceLocked - positional arguments result, err := client.AccountUpdateDeviceLocked(0) if err != nil { // handle error } // result is *tg.Bool