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

41 lines
899 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02: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}
```