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