setMyName method

Future<bool> setMyName(
  1. String name,
  2. String languageCode
)

Use this method to change the bot's name.

Returns True on success.

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

Implementation

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