SponsoredMessage class
Describes a sponsored message
Constructors
- SponsoredMessage({String? extra, int? client_id, int53? message_id, Bool? is_recommended, int53? sponsor_chat_id, ChatInviteLinkInfo? sponsor_chat_info, Bool? show_chat_photo, InternalLinkType? link, MessageContent? content})
-
SponsoredMessage.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- content ↔ MessageContent?
-
Content of the message. Currently, can be only of the type messageText
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- is_recommended ↔ Bool?
-
True, if the message needs to be labeled as "recommended" instead of "sponsored"
getter/setter pair
- link ↔ InternalLinkType?
-
An internal link to be opened when the sponsored message is clicked; may be null if the sponsor chat needs to be opened instead
getter/setter pair
- message_id ↔ int53?
-
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- show_chat_photo ↔ Bool?
-
True, if the sponsor's chat photo must be shown
getter/setter pair
- sponsor_chat_id ↔ int53?
-
Sponsor chat identifier; 0 if the sponsor chat is accessible through an invite link
getter/setter pair
- sponsor_chat_info ↔ ChatInviteLinkInfo?
-
Information about the sponsor chat; may be null unless sponsor_chat_id == 0
getter/setter pair
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited