botInlineMediaResult
Media result
type tg.BotInlineMediaResult struct { /* ... */ }
Implements BotInlineResult.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ID | string | yes | Result ID |
Type | string | yes | Result type (see bot API docs) |
Photo | PhotoClass | — | If type is photo, the photo to send |
Document | DocumentClass | — | If type is document, the document to send |
Title | string | — | Result title |
Description | string | — | Description |
SendMessage | BotInlineMessageClass | yes | Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media |
References
- Official documentation
- Generated Go reference
- TL definition:
botInlineMediaResult#17db940b