setMyShortDescription method

Future<bool> setMyShortDescription(
  1. String shortDescription,
  2. String languageCode
)

Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot.

Returns True on success.

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

Implementation

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