MadelineProto/docs/TD_docs/constructors/authCodeTypeSms.md

45 lines
759 B
Markdown
Raw Normal View History

---
title: authCodeTypeSms
description: Code is delivered by SMS to the specified phone number
---
## Constructor: authCodeTypeSms
[Back to constructors index](index.md)
Code is delivered by SMS to the specified phone number
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|length|[int](../types/int.md) | Yes|Length of the code|
### Type: [AuthCodeType](../types/AuthCodeType.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$authCodeTypeSms = ['_' => 'authCodeTypeSms', 'length' => int];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "authCodeTypeSms", "length": int}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
authCodeTypeSms={_='authCodeTypeSms', length=int}
```