MadelineProtoDocs/docs/API_docs/constructors/botApp.md
2024-05-01 14:53:46 +02:00

1.6 KiB

title description nav_exclude image
botApp Contains information about a direct link Mini App. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: botApp

Back to constructors index

Contains information about a direct link Mini App.

Attributes:

Name Type Required Description
id long Yes bot mini app ID
access_hash long Yes bot mini app access hash
short_name string Yes bot mini app short name, used to generate Direct Mini App deep links.
title string Yes bot mini app title.
description string Yes bot mini app description.
photo Photo Optional bot mini app photo.
document Document Optional bot mini app animation.
hash long Yes Hash 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];