mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-08-05 02:53:26 +00:00
635 B
635 B
Top Up TON
Use this method to send TON to a user's Telegram balance.
Method
await client.topup_ton(
username: str,
amount: int,
show_sender: bool = True,
) -> AdsTopupResult
Parameters
username: recipient Telegram usernameamount: integer from1to1_000_000_000show_sender: controls sender visibility
Important: amount must be an integer in the allowed range.
Return
AdsTopupResult(transaction_id, username, amount)
Example
result: AdsTopupResult = await client.topup_ton("@username", amount=10, show_sender=True)
print(result.transaction_id)