SearchGiftsForResale class final

Returns upgraded gifts that can be bought from other owners using sendResoldGift

Returns GiftsForResale.

Inheritance

Constructors

SearchGiftsForResale({required int giftId, required GiftForResaleOrder order, required bool forCrafting, required bool forStars, required List<UpgradedGiftAttributeId> attributes, required String offset, required int limit})
Returns upgraded gifts that can be bought from other owners using sendResoldGift
const

Properties

attributes → List<UpgradedGiftAttributeId>
Attributes used to filter received gifts. If multiple attributes of the same type are specified, then all of them are allowed. If none attributes of specific type are specified, then all values for this attribute type are allowed
final
canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
forCrafting → bool
Pass true to get only gifts suitable for crafting
final
forStars → bool
Pass true to get only gifts that can be bought using Telegram Stars
final
giftId → int
Identifier of the regular gift that was upgraded to a unique gift
final
hashCode → int
The hash code for this object.
no setterinherited
limit → int
The maximum number of gifts to return
final
offset → String
Offset of the first entry to return as received from the previous request with the same order and attributes; use empty string to get the first chunk of results
final
order → GiftForResaleOrder
Order in which the results will be sorted
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? giftId, GiftForResaleOrder? order, bool? forCrafting, bool? forStars, List<UpgradedGiftAttributeId>? attributes, String? offset, int? limit}) → SearchGiftsForResale
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.