From 1835ccc08e27bb123e291246dce7f305d78bef5e Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 7 Oct 2024 15:43:09 -0400 Subject: [PATCH] Updated ReplyKeyboardRemove --- src/TgBotLib/Objects/ReplyKeyboardRemove.php | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/TgBotLib/Objects/ReplyKeyboardRemove.php b/src/TgBotLib/Objects/ReplyKeyboardRemove.php index 9a8ed8b..257e5f0 100644 --- a/src/TgBotLib/Objects/ReplyKeyboardRemove.php +++ b/src/TgBotLib/Objects/ReplyKeyboardRemove.php @@ -21,6 +21,18 @@ return $this->remove_keyboard; } + /** + * Sets the remove keyboard + * + * @param bool $remove_keyboard + * @return ReplyKeyboardRemove + */ + public function setRemoveKeyboard(bool $remove_keyboard): ReplyKeyboardRemove + { + $this->remove_keyboard = $remove_keyboard; + return $this; + } + /** * Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users * that are @mentioned in the text of the Message object; 2) if the bot's message is a reply @@ -36,6 +48,18 @@ return $this->selective; } + /** + * Sets the selective + * + * @param bool $selective + * @return ReplyKeyboardRemove + */ + public function setSelective(bool $selective): ReplyKeyboardRemove + { + $this->selective = $selective; + return $this; + } + /** * @inheritDoc */