Link Search Menu Expand Document

Constructor: messages.preparedInlineMessage

Back to constructors index

Represents a prepared inline message received via a bot’s mini app, that can be sent to some chats »

Attributes:

NameTypeRequiredDescription
query_idlongYesThe query_id to pass to messages.sendInlineBotResult
resultBotInlineResultYesThe contents of the message, to be shown in a preview
peer_typesArray of InlineQueryPeerTypeYesTypes of chats where this message can be sent
cache_timeintYesCaching validity of the results
usersArray of UserYesUsers mentioned in the results

Type: messages.PreparedInlineMessage

Example:

$messages_preparedInlineMessage = ['_' => 'messages.preparedInlineMessage', 'query_id' => long, 'result' => BotInlineResult, 'peer_types' => [InlineQueryPeerType, InlineQueryPeerType], 'cache_time' => int, 'users' => [User, User]];