AddLocalMessage
public struct AddLocalMessage : Codable, Equatable, TDFunction
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
-
Undocumented
Declaration
Swift
public typealias Result = Message
-
Target chat
Declaration
Swift
public let chatId: Int53
-
Identifier of the user who will be shown as the sender of the message; may be 0 for channel posts
Declaration
Swift
public let senderUserId: Int32
-
Identifier of the message to reply to or 0
Declaration
Swift
public let replyToMessageId: Int53
-
Pass true to disable notification for the message
Declaration
Swift
public let disableNotification: Bool
-
The content of the message to be added
Declaration
Swift
public let inputMessageContent: InputMessageContent
-
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
Declaration
Swift
public init(chatId: Int53, senderUserId: Int32, replyToMessageId: Int53, disableNotification: Bool, inputMessageContent: InputMessageContent)
Parameters
chatId
Target chat
senderUserId
Identifier of the user who will be shown as the sender of the message; may be 0 for channel posts
replyToMessageId
Identifier of the message to reply to or 0
disableNotification
Pass true to disable notification for the message
inputMessageContent
The content of the message to be added