Link Search Menu Expand Document

Constructor: botApp

Back to constructors index

Contains information about a direct link Mini App.

Attributes:

NameTypeRequiredDescription
idlongYesbot mini app ID
access_hashlongYesbot mini app access hash
short_namestringYesbot mini app short name, used to generate Direct Mini App deep links.
titlestringYesbot mini app title.
descriptionstringYesbot mini app description.
photoPhotoOptionalbot mini app photo.
documentDocumentOptionalbot mini app animation.
hashlongYesHash to pass to messages.getBotApp, to avoid refetching bot app info if it hasn’t changed.

Type: BotApp

Example:

$botApp = ['_' => 'botApp', 'id' => long, 'access_hash' => long, 'short_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'document' => Document, 'hash' => long];