SendGift constructor

const SendGift({
  1. required int giftId,
  2. required MessageSender ownerId,
  3. required FormattedText text,
  4. required bool isPrivate,
  5. required bool payForUpgrade,
})

Sends a gift to another user or channel chat. May return an error with a message "STARGIFT_USAGE_LIMITED" if the gift was sold out

Implementation

const SendGift({
  required this.giftId,
  required this.ownerId,
  required this.text,
  required this.isPrivate,
  required this.payForUpgrade,
});