Skip to content

danog\MadelineProto\EventHandler\Message\Rich\Button\LoginUrl: A button that logs the user in to a website with their Telegram account.

Back to index

Author: Daniil Gentili daniil@daniil.it

A button that logs the user in to a website with their Telegram account.

Properties

  • $url: string URL of the website
  • $forwardText: ?string Text of the button in forwarded messages
  • $requestWriteAccess: bool Whether to request the permission for the bot to send messages to the user
  • $text: danog\MadelineProto\EventHandler\Message\Rich\RichText Text of the button
  • $style: ?danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle Style of the button, null for the default one

Method list:

Methods:

__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text, string $url, ?string $forwardText = NULL, bool $requestWriteAccess = false, ?\danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle $style = NULL)

Parameters:

  • $text: \danog\MadelineProto\EventHandler\Message\Rich\RichText|string
  • $url: string
  • $forwardText: ?string
  • $requestWriteAccess: bool
  • $style: ?\danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle

See also:


Generated by danog/phpdoc