mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
1.2 KiB
1.2 KiB
Client Overview
FragmentClient is the main API surface.
You can call methods directly on the client or use grouped services.
Grouped service wrappers:
client.purchasesclient.giveawaysclient.adsclient.anonymous_numbersclient.marketplaceclient.tonapi
Main async methods on FragmentClient:
purchase_stars(...)purchase_premium(...)giveaway_stars(...)giveaway_premium(...)topup_gram(...)recharge_ads(...)get_wallet()get_login_code(...)toggle_login_codes(...)terminate_sessions(...)search_usernames(...)search_numbers(...)search_gifts(...)call(...)
All methods are async and should be used inside async with FragmentClient(...) as client:.
Flow map
- Stars: Purchase, Giveaway
- Premium: Purchase, Giveaway
- Marketplace: Overview, Ads: Overview
- Numbers: Anonymous Numbers
- Utility operations: Raw API Calls
If you are new to the library, start with Stars Purchase or Wallet read (get_wallet) first.