SendMessage
public struct SendMessage : Codable, Equatable, TDFunction
Sends a message. Returns the sent message
-
Undocumented
Declaration
Swift
public typealias Result = Message -
Target chat
Declaration
Swift
public let chatId: Int53 -
Identifier of the message to reply to or 0
Declaration
Swift
public let replyToMessageId: Int53 -
Options to be used to send the message
Declaration
Swift
public let options: SendMessageOptions -
Markup for replying to the message; for bots only
Declaration
Swift
public let replyMarkup: ReplyMarkup? -
The content of the message to be sent
Declaration
Swift
public let inputMessageContent: InputMessageContent -
Sends a message. Returns the sent message
Declaration
Swift
public init(chatId: Int53, replyToMessageId: Int53, options: SendMessageOptions, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent)Parameters
chatIdTarget chat
replyToMessageIdIdentifier of the message to reply to or 0
optionsOptions to be used to send the message
replyMarkupMarkup for replying to the message; for bots only
inputMessageContentThe content of the message to be sent
View on GitHub
Install in Dash
SendMessage Structure Reference