diff --git a/src/InlineKeyboardButton.php b/src/InlineKeyboardButton.php index 892c1f7..0e4d92c 100644 --- a/src/InlineKeyboardButton.php +++ b/src/InlineKeyboardButton.php @@ -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);