Skip to content

Commit

Permalink
Merge pull request #15 from ASKozienko/pay-button
Browse files Browse the repository at this point in the history
Pay Button
  • Loading branch information
makasim authored Mar 25, 2019
2 parents 4f558a6 + 01345af commit d23038f
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 d23038f

Please sign in to comment.