getMyStarBalance method

Future<StarAmount> getMyStarBalance()

Gets the current Telegram Stars balance of the bot.

See: https://core.telegram.org/bots/api#getmystarbalance

Returns a StarAmount object.

Implementation

Future<StarAmount> getMyStarBalance() async {
  final response = await _makeRequest<Map<String, dynamic>>(
    APIMethod.getMyStarBalance.name,
  );

  return StarAmount.fromJson(response);
}