ReportChat class final
ReportChat (reportChat) - TDLib function
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported.
- chatId: Chat identifier.
- messageIds: Identifiers of reported messages; may be empty to report the whole chat. Use messageProperties.can_be_reported to check whether the message can be reported.
- reason: The reason for reporting the chat.
- text: Additional report details; 0-1024 characters.
Ok is returned on completion.
- Inheritance
-
- Object
- TdFunction
- ReportChat
Constructors
-
ReportChat({required int chatId, required List<
int> messageIds, required ReportReason reason, required String text}) -
ReportChat (reportChat) - TDLib function
const
Properties
- chatId → int
-
Chat identifier
final
- currentObjectId → String
-
TDLib object type for current class instance
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messageIds
→ List<
int> -
Identifiers of reported messages; may be empty to report the whole chat. Use messageProperties.can_be_reported to check whether the message can be reported
final
- reason → ReportReason
-
The reason for reporting the chat
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Additional report details; 0-1024 characters
final
Methods
-
copyWith(
{int? chatId, List< int> ? messageIds, ReportReason? reason, String? text}) → ReportChat - 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