MadelineProtoDocs/docs/API_docs/constructors/restrictionReason.md

41 lines
858 B
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: restrictionReason
description: Restriction reason
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: restrictionReason
[Back to constructors index](index.md)
Restriction reason
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|platform|[string](../types/string.md) | Yes|Platform|
|reason|[string](../types/string.md) | Yes|Reason|
|text|[string](../types/string.md) | Yes|Text|
### Type: [RestrictionReason](../types/RestrictionReason.md)
### Example:
```php
$restrictionReason = ['_' => 'restrictionReason', 'platform' => 'string', 'reason' => 'string', 'text' => 'string'];
```
Or, if you're into Lua:
```lua
restrictionReason={_='restrictionReason', platform='string', reason='string', text='string'}
```