getMyStarBalance¶
Returns: StarAmount
- class aiogram.methods.get_my_star_balance.GetMyStarBalance(**extra_data: Any)[source]¶
A method to get the current Telegram Stars balance of the bot. Requires no parameters. On success, returns a
aiogram.types.star_amount.StarAmountobject.
Usage¶
As bot method¶
result: StarAmount = await bot.get_my_star_balance(...)
Method as object¶
Imports:
from aiogram.methods.get_my_star_balance import GetMyStarBalancealias:
from aiogram.methods import GetMyStarBalance
With specific bot¶
result: StarAmount = await bot(GetMyStarBalance(...))