setStickerSetThumb method

Future<Result<MessagesStickerSetBase>> setStickerSetThumb({
  1. required InputStickerSetBase stickerset,
  2. InputDocumentBase? thumb,
  3. int? thumbDocumentId,
})

Set Sticker Set Thumb.

ID: a76a5392.

Implementation

Future<Result<MessagesStickerSetBase>> setStickerSetThumb({
  required InputStickerSetBase stickerset,
  InputDocumentBase? thumb,
  int? thumbDocumentId,
}) async {
  // Preparing the request.
  final request = StickersSetStickerSetThumb(
    stickerset: stickerset,
    thumb: thumb,
    thumbDocumentId: thumbDocumentId,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<MessagesStickerSetBase>();
}