mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-08-04 10:40:20 +00:00
573 B
573 B
Recharge Ads
Use this method to add funds to your Telegram Ads account.
Method
await client.recharge_ads(
account: str,
amount: int,
) -> AdsRechargeResult
Parameters
account: channel or bot username linked to your ads accountamount: integer from1to1_000_000_000
Important: amount must be an integer in the allowed range.
Return
AdsRechargeResult(transaction_id, amount)
Example
result: AdsRechargeResult = await client.recharge_ads("@mychannel", amount=50)
print(result.transaction_id)