ChatBoostSourceGiftCode class

The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Implemented types

Constructors

ChatBoostSourceGiftCode({required User user})
Creates a source of a chat boost.
const
ChatBoostSourceGiftCode.fromJson(Map<String, dynamic> json)
Creates a ChatBoostSourceGiftCode object from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ChatBoostSourceType
Source of the boost, always ChatBoostSourceType.giftCode
final
user User
User for which the gift code was created
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the ChatBoostSourceGiftCode object to a JSON object.
override
toString() String
A string representation of this object.
inherited

Operators

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