ApproveSuggestedPost class final

Approves a suggested post in a channel direct messages chat

Returns Ok.

Inheritance

Constructors

ApproveSuggestedPost({required int chatId, required int messageId, required int sendDate})
Approves a suggested post in a channel direct messages chat
const

Properties

canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
chatId → int
Chat identifier of the channel direct messages chat
final
hashCode → int
The hash code for this object.
no setterinherited
messageId → int
Identifier of the message with the suggested post. Use messageProperties.can_be_approved to check whether the suggested post can be approved
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; pass 0 if the date has already been chosen. If specified, then the date must be in the future, but at most getOption("suggested_post_send_delay_max") seconds in the future
final

Methods

copyWith({int? chatId, int? messageId, int? sendDate}) → ApproveSuggestedPost
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 function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
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.