mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-08-03 02:01:37 +00:00
docs: add examples to various API methods for better clarity
This commit is contained in:
@@ -21,3 +21,10 @@ await client.recharge_ads(
|
||||
## Return
|
||||
|
||||
- `AdsRechargeResult(transaction_id, amount)`
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
result: AdsRechargeResult = await client.recharge_ads("@mychannel", amount=50)
|
||||
print(result.transaction_id)
|
||||
```
|
||||
|
||||
@@ -23,3 +23,10 @@ await client.topup_ton(
|
||||
## Return
|
||||
|
||||
- `AdsTopupResult(transaction_id, username, amount)`
|
||||
|
||||
## Example
|
||||
|
||||
```python
|
||||
result: AdsTopupResult = await client.topup_ton("@username", amount=10, show_sender=True)
|
||||
print(result.transaction_id)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user