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

[Back to index](../../../../../../index.html)

> 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:
* [`__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)`](#__construct)

## Methods:
### <a name="__construct"></a> `__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: 
* [`\danog\MadelineProto\EventHandler\Message\Rich\RichText`: Styled text of a [rich message](https://core.telegram.org/bots/api#richtext): a tree of plain texts, styles, links and so on.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/RichText.html)
* [`\danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle`: Style of a button of a rich message.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/ButtonStyle.html)




---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
