getGiveawayInfo method

Future<Result<PaymentsGiveawayInfoBase>> getGiveawayInfo({
  1. required InputPeerBase peer,
  2. required int msgId,
})

Get Giveaway Info.

ID: f4239425.

Implementation

Future<Result<PaymentsGiveawayInfoBase>> getGiveawayInfo({
  required InputPeerBase peer,
  required int msgId,
}) async {
  // Preparing the request.
  final request = PaymentsGetGiveawayInfo(
    peer: peer,
    msgId: msgId,
  );

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

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