get_ton_balance()

Client.get_ton_balance()

Get the current TON balance of the current account.

Usable by Users Bots
Returns:

float – On success, the current stars balance is returned.

Example

# Get stars balance of current account
await app.get_stars_balance()

# Get stars balance of a bot
await app.get_stars_balance(chat_id="pyrogrambot")