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