Link Search Menu Expand Document

danog\MadelineProto\EventHandler\BotApp

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents information about a named bot web app.

Properties

  • $id: int app ID
  • $accessHash: int access hash
  • $name: string Bot web app short name, used to generate named bot web app deep links.
  • $title: string Bot web app title.
  • $description: string Bot web app description.
  • $photo: \Photo Bot web app photo.
  • $document: \Document Bot web app animation.
  • $hash: int Hash to pass to messages.getBotApp, to avoid refetching bot app info if it hasn’t changed.
  • $inactive: ?bool Whether the web app was never used by the user, and confirmation must be asked from the user before opening it.
  • $requestWriteAccess: ?bool The bot is asking permission to send messages to the user: if the user agrees, set the write_allowed flag when invoking messages.requestAppWebView.
  • $hasSettings: ?bool

Method list:

Methods:

__construct(\danog\MadelineProto\MTProto $API, array $rawBotApp, ?bool $inactive = NULL, ?bool $requestWriteAccess = NULL, ?bool $hasSettings = NULL)

Parameters:

  • $API: \danog\MadelineProto\MTProto
  • $rawBotApp: array
  • $inactive: ?bool
  • $requestWriteAccess: ?bool
  • $hasSettings: ?bool

See also:

  • \danog\MadelineProto\MTProto

Generated by danog/phpdoc