DeleteChatHistory
public struct DeleteChatHistory : Codable, Equatable, TDFunction
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
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Chat identifier
Declaration
Swift
public let chatId: Int53
-
Pass true if the chat should be removed from the chat list
Declaration
Swift
public let removeFromChatList: Bool
-
Pass true to try to delete chat history for all users
Declaration
Swift
public let revoke: Bool
-
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
Declaration
Swift
public init(chatId: Int53, removeFromChatList: Bool, revoke: Bool)
Parameters
chatId
Chat identifier
removeFromChatList
Pass true if the chat should be removed from the chat list
revoke
Pass true to try to delete chat history for all users