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