SendMessageOptions

public struct SendMessageOptions : Codable, Equatable, FunctionResult

Options to be used when a message is send

  • Pass true to disable notification for the message. Must be false if the message is sent to a secret chat

    Declaration

    Swift

    public let disableNotification: Bool
  • Pass true if the message is sent from the background

    Declaration

    Swift

    public let fromBackground: Bool
  • Message scheduling state. Messages sent to a secret chat, live location messages and self-destructing messages can’t be scheduled

    Declaration

    Swift

    public let schedulingState: MessageSchedulingState
  • Options to be used when a message is send

    Declaration

    Swift

    public init(disableNotification: Bool, fromBackground: Bool, schedulingState: MessageSchedulingState)

    Parameters

    disableNotification

    Pass true to disable notification for the message. Must be false if the message is sent to a secret chat

    fromBackground

    Pass true if the message is sent from the background

    schedulingState

    Message scheduling state. Messages sent to a secret chat, live location messages and self-destructing messages can’t be scheduled