Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Keyboard

Back to index

Author: Daniil Gentili daniil@daniil.it

Represents an inline or reply keyboard.

Properties

  • $buttons: non-empty-list<non-empty-list<Button>>

Method list:

Methods:

fromRawReplyMarkup(array $rawReplyMarkup): ?self

Parameters:

  • $rawReplyMarkup: array

pressByCoordinates(int $row, int $column, bool $waitForResult): mixed

Press button at the specified keyboard coordinates.

Parameters:

  • $row: int
  • $column: int
  • $waitForResult: bool If true, waits for a result from the bot before returning.

press(string $label, bool $waitForResult): mixed

Presses the first keyboard button with the specified label.

Parameters:

  • $label: string
  • $waitForResult: bool If true, waits for a result from the bot before returning.

Generated by danog/phpdoc