Layer 231
RichButtonStyleObj
Style of a button in a rich message.
constructor
richButtonStyle#3c610bd flags:# bg_primary:flags.0?true bg_danger:flags.1?true bg_success:flags.2?true link:flags.3?true = RichButtonStyle;
Parameters
| Name | Type | Description |
|---|---|---|
| BgPrimary | flags.0?true | Use the primary background color |
| BgDanger | flags.1?true | Use the danger (red) background color |
| BgSuccess | flags.2?true | Use the success (green) background color |
| Link | flags.3?true | Show the button as a link |
Returns
RichButtonStyleGogram Example
// Creating RichButtonStyleObj constructor obj := &tg.RichButtonStyleObj{ // Optional fields: // BgPrimary: true, // BgDanger: true, // BgSuccess: true, // Link: true, }