MadelineProtoDocs/old_docs/API_docs_v100/constructors/botInlineMediaResult.md
2019-12-27 17:48:04 +01:00

1.6 KiB

title description image
botInlineMediaResult Media result https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: botInlineMediaResult

Back to constructors index

Media result

Attributes:

Name Type Required Description
id string Yes Result ID
type string Yes Result type (see bot API docs)
photo Photo Optional If type is photo, the photo to send
document Document Optional If type is document, the document to send
title string Optional Result title
description string Optional Description
send_message BotInlineMessage 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

Type: BotInlineResult

Example:

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

Or, if you're into Lua:

botInlineMediaResult={_='botInlineMediaResult', id='string', type='string', photo=Photo, document=Document, title='string', description='string', send_message=BotInlineMessage}