ChatMessage

@objcMembers
@objc(GetSocialChatMessage)
public class ChatMessage : NSObject

Describe a chat message instance.

  • id

    Message id.

    Declaration

    Swift

    @objc(messageId)
    public internal(set) var id: String { get }
  • Text content.

    Declaration

    Swift

    public internal(set) var text: String? { get }
  • Author.

    Declaration

    Swift

    public internal(set) var author: User { get }
  • Media attachments.

    Declaration

    Swift

    public internal(set) var mediaAttachments: [MediaAttachment] { get }
  • Custom properties.

    Declaration

    Swift

    public internal(set) var properties: [String : String] { get }
  • Date of sending as UNIX timestamp in UTC.

    Declaration

    Swift

    public internal(set) var sentAt: Int64 { get }
  • Description.

    Declaration

    Swift

    public override var description: String { get }