Skip to main content

botInlineMediaResult

Media result

type tg.BotInlineMediaResult struct { /* ... */ }

Implements BotInlineResult.

Fields​

NameTypeRequiredDescription
IDstringyesResult ID
TypestringyesResult type (see bot API docs)
PhotoPhotoClass—If type is photo, the photo to send
DocumentDocumentClass—If type is document, the document to send
Titlestring—Result title
Descriptionstring—Description
SendMessageBotInlineMessageClassyesDepending 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​