SuggestedPostInfo class final

Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes

Inheritance

Constructors

SuggestedPostInfo({SuggestedPostPrice? price, required int sendDate, required SuggestedPostState state, required bool canBeApproved, required bool canBeDeclined})
Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes
const
SuggestedPostInfo.fromJson(Map<String, dynamic> json)
Parses a SuggestedPostInfo from TDLib JSON.
factory

Properties

canBeApproved → bool
True, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren't sent when value of this field changes
final
canBeDeclined → bool
True, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren't sent when value of this field changes
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
price → SuggestedPostPrice?
Price of the suggested post; may be null if the post is non-paid
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendDate → int
Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn't set yet
final
state → SuggestedPostState
State of the post
final

Methods

copyWith({SuggestedPostPrice? price()?, int? sendDate, SuggestedPostState? state, bool? canBeApproved, bool? canBeDeclined}) → SuggestedPostInfo
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.