getMyName method

Future<BotName> getMyName(
  1. String languageCode
)

Use this method to get the current bot name for the given user language.

Returns BotName on success.

https://core.telegram.org/bots/api#getmyname

Implementation

Future<BotName> getMyName(String languageCode) async {
  var requestUrl = _apiUri('getMyName');
  var body = <String, dynamic>{
    'language_code': languageCode,
  };
  return BotName.fromJson(await HttpClient.httpPost(requestUrl, body: body));
}