MadelineProtoDocs/old_docs/API_docs_v66/constructors/postAddress.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: postAddress
2019-12-27 17:48:04 +01:00
description: Shipping address
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: postAddress
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Shipping address
2018-12-26 02:56:50 +01:00
2018-04-01 13:19:25 +02:00
### Attributes:
2018-12-26 02:56:50 +01:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|street\_line1|[string](../types/string.md) | Yes|First line for the address|
|street\_line2|[string](../types/string.md) | Yes|Second line for the address|
2018-12-26 02:56:50 +01:00
|city|[string](../types/string.md) | Yes|City|
2019-12-27 17:48:04 +01:00
|state|[string](../types/string.md) | Yes|State, if applicable (empty otherwise)|
|country\_iso2|[string](../types/string.md) | Yes|ISO 3166-1 alpha-2 country code|
|post\_code|[string](../types/string.md) | Yes|Address post code|
2018-04-01 13:19:25 +02:00
### Type: [PostAddress](../types/PostAddress.md)
### Example:
```php
2018-04-01 13:19:25 +02:00
$postAddress = ['_' => 'postAddress', 'street_line1' => 'string', 'street_line2' => 'string', 'city' => 'string', 'state' => 'string', 'country_iso2' => 'string', 'post_code' => 'string'];
```
Or, if you're into Lua:
2018-04-01 13:19:25 +02:00
```lua
2018-04-01 13:19:25 +02:00
postAddress={_='postAddress', street_line1='string', street_line2='string', city='string', state='string', country_iso2='string', post_code='string'}
```