DeleteChatHistory class final
DeleteChatHistory (deleteChatHistory) - TDLib function
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat.
- chatId: Chat identifier.
- removeFromChatList: Pass true to remove the chat from all chat lists.
- revoke: Pass true to delete chat history for all users.
Ok is returned on completion.
- Inheritance
-
- Object
- TdFunction
- DeleteChatHistory
Constructors
- DeleteChatHistory({required int chatId, required bool removeFromChatList, required bool revoke})
-
DeleteChatHistory (deleteChatHistory) - 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
- removeFromChatList → bool
-
Pass true to remove the chat from all chat lists
final
- revoke → bool
-
Pass true to delete chat history for all users
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? chatId, bool? removeFromChatList, bool? revoke}) → DeleteChatHistory - 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