MadelineProtoDocs/old_docs/API_docs_v104/constructors/textImage.md

41 lines
722 B
Markdown
Raw Normal View History

2019-08-15 20:25:16 +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}
```