Skip to content

Commit 4ee5652

Browse files
committed
2 parents 1d22e6c + d23038f commit 4ee5652

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/InlineKeyboardButton.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public function getCallbackData(): ?string
4040
return get_value($this, 'callback_data');
4141
}
4242

43+
public function setPay(bool $pay): void
44+
{
45+
set_value($this, 'pay', $pay);
46+
}
47+
48+
public function isPay(): bool
49+
{
50+
return get_value($this, 'pay', false);
51+
}
52+
4353
public static function withUrl(string $text, string $url): self
4454
{
4555
$button = new self($text);

0 commit comments

Comments
 (0)