# danog\MadelineProto\EventHandler\Message\Rich\Button\UserProfile: A button that opens the profile of a user.

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

> Author: Daniil Gentili <daniil@daniil.it>  
  

A button that opens the profile of a user.  



## Properties
* `$userId`: `int` ID of 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, int $userId, ?\danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle $style = NULL)`](#__construct)

## Methods:
### <a name="__construct"></a> `__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text, int $userId, ?\danog\MadelineProto\EventHandler\Message\Rich\ButtonStyle $style = NULL)`




Parameters:

* `$text`: `\danog\MadelineProto\EventHandler\Message\Rich\RichText|string`   
* `$userId`: `int`   
* `$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)
