MadelineProtoDocs/old_docs/API_docs_v109/constructors/account.tmpPassword.md

41 lines
899 B
Markdown
Raw Permalink Normal View History

2020-03-06 12:24:14 +01:00
---
title: account.tmpPassword
description: Temporary payment password
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_tmpPassword.html
---
# Constructor: account.tmpPassword
[Back to constructors index](index.md)
Temporary payment password
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_password|[bytes](../types/bytes.md) | Yes|Temporary password|
|valid\_until|[int](../types/int.md) | Yes|Validity period|
### Type: [account.TmpPassword](../types/account.TmpPassword.md)
### Example:
```php
$account.tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes', 'valid_until' => int];
```
Or, if you're into Lua:
```lua
account.tmpPassword={_='account.tmpPassword', tmp_password='bytes', valid_until=int}
```