ChatBoostStatus class final

Describes current boost status of a chat

Inheritance

Constructors

ChatBoostStatus({required String boostUrl, required List<int> appliedSlotIds, required int level, required int giftCodeBoostCount, required int boostCount, required int currentLevelBoostCount, required int nextLevelBoostCount, required int premiumMemberCount, required double premiumMemberPercentage, required List<PrepaidPremiumGiveaway> prepaidGiveaways, dynamic extra, int? clientId})
Describes current boost status of a chat
const
ChatBoostStatus.fromJson(Map<String, dynamic> json)
Parses a ChatBoostStatus from TDLib JSON.
factory

Properties

appliedSlotIds → List<int>
Identifiers of boost slots of the current user applied to the chat
final
boostCount → int
The number of boosts received by the chat
final
boostUrl → String
An HTTP URL, which can be used to boost the chat
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
currentLevelBoostCount → int
The number of boosts added to reach the current level
final
extra → dynamic
"@extra" of the request this object answers.
final
giftCodeBoostCount → int
The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn't an administrator in the chat
final
hashCode → int
The hash code for this object.
no setterinherited
level → int
Current boost level of the chat
final
nextLevelBoostCount → int
The number of boosts needed to reach the next level; 0 if the next level isn't available
final
premiumMemberCount → int
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
final
premiumMemberPercentage → double
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
final
prepaidGiveaways → List<PrepaidPremiumGiveaway>
The list of prepaid giveaways available for the chat; only for chat administrators
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? boostUrl, List<int>? appliedSlotIds, int? level, int? giftCodeBoostCount, int? boostCount, int? currentLevelBoostCount, int? nextLevelBoostCount, int? premiumMemberCount, double? premiumMemberPercentage, List<PrepaidPremiumGiveaway>? prepaidGiveaways, dynamic extra, int? clientId}) → ChatBoostStatus
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 type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
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.