From 054f76d144b3b5a4ebf91cf48bfc6fac789e9e9d Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 1 Oct 2024 12:42:52 -0400 Subject: [PATCH] Added ChatBoostAdded --- .../Objects/Telegram/ChatBoostAdded.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/TgBotLib/Objects/Telegram/ChatBoostAdded.php diff --git a/src/TgBotLib/Objects/Telegram/ChatBoostAdded.php b/src/TgBotLib/Objects/Telegram/ChatBoostAdded.php new file mode 100644 index 0000000..43fc9fb --- /dev/null +++ b/src/TgBotLib/Objects/Telegram/ChatBoostAdded.php @@ -0,0 +1,40 @@ +boost_count; + } + + /** + * @inheritDoc + */ + public function toArray(): array + { + return [ + 'boost_count' => $this->boost_count + ]; + } + + /** + * @inheritDoc + */ + public static function fromArray(array $data): ObjectTypeInterface + { + $object = new self(); + $object->boost_count = $data['boost_count']; + return $object; + } +} \ No newline at end of file