SetMessageFactCheck class final
SetMessageFactCheck (setMessageFactCheck) - TDLib function
Changes the fact-check of a message. Can be only used if messageProperties.can_set_fact_check == true.
- chatId: The channel chat the message belongs to.
- messageId: Identifier of the message.
- text: New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic, and TextUrl entities with https://t.me/ links are supported (optional).
Ok is returned on completion.
- Inheritance
-
- Object
- TdFunction
- SetMessageFactCheck
Constructors
- SetMessageFactCheck({required int chatId, required int messageId, FormattedText? text})
-
SetMessageFactCheck (setMessageFactCheck) - TDLib function
const
Properties
- chatId → int
-
The channel chat the message belongs to
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageId → int
-
Identifier of the message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → FormattedText?
-
New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it. Only Bold, Italic, and TextUrl entities with https://t.me/ links are supported
final
Methods
-
copyWith(
{int? chatId, int? messageId, FormattedText? text}) → SetMessageFactCheck - Copy model with modified properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Convert model to TDLib JSON format
override
-
toString(
) → String -
Convert model to TDLib JSON format, encoded into String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultObjectId → const String
- TDLib object type