UserMessageCreateParams
@objc(SBDUserMessageCreateParams)
public final class UserMessageCreateParams : BaseMessageCreateParams
An object contains a set of options to create UserMessage
.
Since
3.0.90-
Message text.
Declaration
Swift
@objc public var message: String
-
The target languages that the message will be translated into.
Declaration
Swift
@objc public var translationTargetLanguages: [String]?
-
Links a poll with message, to unlink set it -1
Since
4.1.0Declaration
Swift
@objc public var pollId: Int64
-
The template for the message that has the mentioned users.
Declaration
Swift
@objc public var mentionedMessageTemplate: String?
-
Default construrctor
Declaration
Swift
@objc public init(message: String)
Parameters
message
The message to text.
Return Value
An initialized user message params
-
Copies this object
Declaration
Swift
public override func copy(with zone: NSZone? = nil) -> Any
Parameters
zone
optional
NSZone
Return Value
UserMessageCreateParams
instance -
Encodes this object.
Declaration
Swift
public override func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance