MessageSendingState
public indirect enum MessageSendingState : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Contains information about the sending state of the message
-
The message is being sent now, but has not yet been delivered to the server
Declaration
Swift
case pending
-
The message failed to be sent
- errorCode: An error code; 0 if unknown
- errorMessage: Error message
- canRetry: True, if the message can be re-sent
- retryAfter: Time left before the message can be re-sent, in seconds. No update is sent when this field changes
Declaration
Swift
case failed(errorCode: Int32, errorMessage: String, canRetry: Bool, retryAfter: Double)