feat: rename gift methods to purchase for clarity; update examples and changelog

This commit is contained in:
bohd4nx
2026-03-16 19:13:07 +02:00
parent b726a2274c
commit 20b73444ab
9 changed files with 34 additions and 22 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ async def main() -> None:
client = FragmentClient(seed=SEED, api_key=API_KEY, cookies=COOKIES)
try:
result = await client.gift_premium(USERNAME, months=MONTHS, show_sender=True)
result = await client.purchase_premium(USERNAME, months=MONTHS, show_sender=True)
except UserNotFoundError:
print(f"User {USERNAME!r} not found on Fragment.")
return