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
chatId
Target chat
replyToMessageId
Identifier of the message to reply to or 0
options
Options to be used to send the message
replyMarkup
Markup for replying to the message; for bots only
inputMessageContent
The content of the message to be sent