SendGiftPurchaseOffer class final

Sends an offer to purchase an upgraded gift

Returns Ok.

Inheritance

Constructors

SendGiftPurchaseOffer({required MessageSender ownerId, required String giftName, required GiftResalePrice price, required int duration, required int paidMessageStarCount})
Sends an offer to purchase an upgraded gift
const

Properties

canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
duration → int
Duration of the offer, in seconds; must be one of 21600, 43200, 86400, 129600, 172800, or 259200. Can also be 120 if Telegram test environment is used
final
giftName → String
Name of the upgraded gift
final
hashCode → int
The hash code for this object.
no setterinherited
ownerId → MessageSender
Identifier of the user or the channel chat that currently owns the gift and will receive the offer
final
paidMessageStarCount → int
The number of Telegram Stars the user agreed to pay additionally for sending of the offer message to the current gift owner; pass userFullInfo.outgoing_paid_message_star_count for users and 0 otherwise
final
price → GiftResalePrice
The price that the user agreed to pay for the gift
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({MessageSender? ownerId, String? giftName, GiftResalePrice? price, int? duration, int? paidMessageStarCount}) → SendGiftPurchaseOffer
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.