MadelineProtoDocs/old_docs/API_docs_v102/constructors/textImage.md

41 lines
726 B
Markdown
Raw Normal View History

2019-06-24 15:45:02 +02:00
---
title: textImage
2019-12-27 17:48:04 +01:00
description: Inline image
2019-06-24 15:45:02 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: textImage
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Inline image
2019-06-24 15:45:02 +02:00
### 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}
```