Skip to content

Commit

Permalink
pay button
Browse files Browse the repository at this point in the history
  • Loading branch information
ASKozienko committed Mar 25, 2019
1 parent fff3ea1 commit 01345af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/InlineKeyboardButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ public function getCallbackData(): ?string
return get_value($this, 'callback_data');
}

public function setPay(bool $pay): void
{
set_value($this, 'pay', $pay);
}

public function isPay(): bool
{
return get_value($this, 'pay', false);
}

public static function withUrl(string $text, string $url): self
{
$button = new self($text);
Expand Down

0 comments on commit 01345af

Please sign in to comment.