MadelineProtoDocs/old_docs/API_docs_v103/constructors/inputCheckPasswordSRP.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: inputCheckPasswordSRP
2019-12-27 17:48:04 +01:00
description: Constructor for checking the validity of a 2FA SRP password (see [SRP](https://core.telegram.org/api/srp))
2019-08-15 20:25:16 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputCheckPasswordSRP
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Constructor for checking the validity of a 2FA SRP password (see [SRP](https://core.telegram.org/api/srp))
2019-08-15 20:25:16 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|srp\_id|[long](../types/long.md) | Yes|[SRP ID](https://core.telegram.org/api/srp)|
|A|[bytes](../types/bytes.md) | Yes|`A` parameter (see [SRP](https://core.telegram.org/api/srp))|
|M1|[bytes](../types/bytes.md) | Yes|`M1` parameter (see [SRP](https://core.telegram.org/api/srp))|
2019-08-15 20:25:16 +02:00
### Type: [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md)
### Example:
```php
$inputCheckPasswordSRP = ['_' => 'inputCheckPasswordSRP', 'srp_id' => long, 'A' => 'bytes', 'M1' => 'bytes'];
```
Or, if you're into Lua:
```lua
inputCheckPasswordSRP={_='inputCheckPasswordSRP', srp_id=long, A='bytes', M1='bytes'}
```