setMyDescription method

Future<bool> setMyDescription(
  1. String description,
  2. String languageCode
)

Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty.

Returns True on success.

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

Implementation

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