Skip to main content

botInlineMediaResult

Media result

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

Implements BotInlineResult.

Fields

NameTypeRequiredDescription
IDstringyesResult ID
TypestringyesResult type (see bot API docs)
PhotoPhotoClassIf type is photo, the photo to send
DocumentDocumentClassIf type is document, the document to send
TitlestringResult title
DescriptionstringDescription
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