SponsoredMessage class

Describes a sponsored message.

Inheritance
Available Extensions

Constructors

SponsoredMessage({required int message_id, required bool is_recommended, required MessageContent content, required MessageSponsor sponsor, required String additional_info, int? extra, int? clientId})
Describes a sponsored message

Properties

additional_info String
If non-empty, additional information about the sponsored message to be shown along with the message.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
content MessageContent
Content of the message. Currently, can be only of the type messageText.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
True, if the message needs to be labeled as "recommended" instead of "sponsored".
read / write
message_id int
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
Information about the sponsor of the message.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) SponsoredMessage?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"sponsoredMessage"