account.updateDeviceLocked
When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
func (c *Client) AccountUpdateDeviceLocked(ctx context.Context, period int) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountUpdateDeviceLocked(ctx, period)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Period | int | yes | Inactivity period after which to start hiding message texts in PUSH notifications. |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.updateDeviceLocked#38df3532