2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\TL\Types\Button: Clickable button.
|
|
|
|
description:
|
|
|
|
|
2020-10-16 11:57:00 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
# `danog\MadelineProto\TL\Types\Button`
|
|
|
|
[Back to index](../../../../index.md)
|
|
|
|
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
|
|
|
|
|
|
Clickable button.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
|
|
* `click(bool $donotwait): mixed`
|
|
|
|
* `jsonSerialize(): array`
|
|
|
|
* `offsetSet( $name, mixed $value): void`
|
|
|
|
* `offsetGet( $name): mixed`
|
|
|
|
* `offsetUnset( $name): void`
|
|
|
|
* `offsetExists( $name): bool`
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
### `click(bool $donotwait): mixed`
|
|
|
|
|
|
|
|
Click on button.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$donotwait`: `bool` Whether to wait for the result of the method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `jsonSerialize(): array`
|
|
|
|
|
|
|
|
Serialize button.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `offsetSet( $name, mixed $value): void`
|
|
|
|
|
|
|
|
Set button info.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$name`: `` Offset
|
|
|
|
* `$value`: `mixed` Value
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `offsetGet( $name): mixed`
|
|
|
|
|
|
|
|
Get button info.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$name`: `` Field name
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `offsetUnset( $name): void`
|
|
|
|
|
|
|
|
Unset button info.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$name`: `` Offset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `offsetExists( $name): bool`
|
|
|
|
|
|
|
|
Check if button field exists.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$name`: `` Offset
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|