MadelineProtoDocs/old_docs/API_docs_v18/constructors/botInlineResult.md
2020-06-16 17:50:25 +02:00

1.7 KiB

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

Constructor: botInlineResult

Back to constructors index

Generic result

Attributes:

Name Type Required Description
id string Yes Result ID
type string Yes Result type (see bot API docs)
title string Optional Result title
description string Optional Result description
url string Optional URL of article or webpage
thumb_url string Optional
content_url string Optional
content_type string Optional
w int Optional
h int Optional
duration int Optional
send_message BotInlineMessage Yes Message to send

Type: BotInlineResult

Example:

$botInlineResult = ['_' => 'botInlineResult', 'id' => 'string', 'type' => 'string', 'title' => 'string', 'description' => 'string', 'url' => 'string', 'thumb_url' => 'string', 'content_url' => 'string', 'content_type' => 'string', 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage];

Or, if you're into Lua:

botInlineResult={_='botInlineResult', id='string', type='string', title='string', description='string', url='string', thumb_url='string', content_url='string', content_type='string', w=int, h=int, duration=int, send_message=BotInlineMessage}