MadelineProtoDocs/old_docs/API_docs_v102/constructors/textImage.md

41 lines
722 B
Markdown
Raw Normal View History

2019-06-24 15:45:02 +02:00
---
title: textImage
description: Text image
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: textImage
[Back to constructors index](index.md)
Text image
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|document\_id|[long](../types/long.md) | Yes|Document ID|
|w|[int](../types/int.md) | Yes|Width|
|h|[int](../types/int.md) | Yes|Height|
### Type: [RichText](../types/RichText.md)
### Example:
```php
$textImage = ['_' => 'textImage', 'document_id' => long, 'w' => int, 'h' => int];
```
Or, if you're into Lua:
```lua
textImage={_='textImage', document_id=long, w=int, h=int}
```