Link Search Menu Expand Document

Constructor: botInlineMediaResult

Back to constructors index

Media result

Attributes:

NameTypeRequiredDescription
idstringYesResult ID
typestringYesResult type (see bot API docs)
photoPhotoOptionalIf type is photo, the photo to send
documentDocumentOptionalIf type is document, the document to send
titlestringOptionalResult title
descriptionstringOptionalDescription
send_messageBotInlineMessageYesDepending 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

Type: BotInlineResult

Example:

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