# botInlineMediaResult

> Media result

[Back to constructors index](/API_docs/constructors/index.html)



Media result

### Attributes:

| Name     |    Type       | Required | Description |
|----------|---------------|----------|-------------|
|id|[string](/API_docs/types/string.html) | Yes|Result ID|
|type|[string](/API_docs/types/string.html) | Yes|Result type (see [bot API docs](https://core.telegram.org/bots/api#inlinequeryresult))|
|photo|[Photo](/API_docs/types/Photo.html) | Optional|If type is `photo`, the photo to send|
|document|[Document](/API_docs/types/Document.html) | Optional|If type is `document`, the document to send|
|title|[string](/API_docs/types/string.html) | Optional|Result title|
|description|[string](/API_docs/types/string.html) | Optional|Description|
|send\_message|[BotInlineMessage](/API_docs/types/BotInlineMessage.html) | Yes|Depending on the `type` and on the [constructor](../types/BotInlineMessage.html), contains the caption of the media or the content of the message to be sent **instead** of the media|



### Type: [BotInlineResult](/API_docs/types/BotInlineResult.html)


### Example:

```
$botInlineMediaResult = ['_' => 'botInlineMediaResult', 'id' => 'string', 'type' => 'string', 'photo' => Photo, 'document' => Document, 'title' => 'string', 'description' => 'string', 'send_message' => BotInlineMessage];
```
