messages.getBotApp #

Obtain information about a direct link Mini App

Layer 223

messages.botApp#eb50adf5 flags:# inactive:flags.0?true request_write_access:flags.1?true has_settings:flags.2?true app:BotApp = messages.BotApp;
---functions---
messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp;

Parameters #

NameTypeDescription
appInputBotAppBot app information obtained from a Direct Mini App deep link ».
hashlongHash used for caching, for more info click here

Result #

messages.BotApp

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_APP_BOT_INVALIDThe bot_id passed in the inputBotAppShortName constructor is invalid.
400BOT_APP_INVALIDThe specified bot app is invalid.
400BOT_APP_SHORTNAME_INVALIDThe specified bot app short name is invalid.

Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.

Pagination in the API #

How to fetch results from large lists of objects.

Mini Apps on Telegram #

Bots can offer users interactive HTML5 web apps to completely replace any website.