From 01345afdc06a71fa46c744513f9dfbfb7207c762 Mon Sep 17 00:00:00 2001 From: Alexander Kozienko Date: Mon, 25 Mar 2019 09:37:46 +0200 Subject: [PATCH] pay button --- src/InlineKeyboardButton.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);