Instance Method

getMessages(with:then:)

Gets an array of messages from this channel

Declaration

func getMessages(with options: [String : Any]? = nil, then completion: @escaping ([Message]?, RequestError?) -> Void)

Parameters

options

Dictionary containing optional options regarding how many messages, or when to get them

Option Params

  • around: Message Id to get messages around

  • before: Message Id to get messages before this one

  • after: Message Id to get messages after this one

  • limit: Number of how many messages you want to get (1-100)