SendGift constructor
const
SendGift({
- required int giftId,
- required MessageSender ownerId,
- required FormattedText text,
- required bool isPrivate,
- 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,
});